diff options
author | Jedidiah Barber <contact@jedbarber.id.au> | 2025-01-16 12:17:46 +1300 |
---|---|---|
committer | Jedidiah Barber <contact@jedbarber.id.au> | 2025-01-16 12:17:46 +1300 |
commit | ba1719013e5bab82a2accb4aadfd8451c3ebc931 (patch) | |
tree | 0ce67b8257b0ed05e50704ec6a808aac0659816b /src/c_fl_choice.cpp | |
parent | 106316bcedec72c5380a7544c27be6a5c117e57a (diff) |
Fixed bug in Fl_Choice binding, filled small hole in Fl_Menu_Button binding
Diffstat (limited to 'src/c_fl_choice.cpp')
-rw-r--r-- | src/c_fl_choice.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/c_fl_choice.cpp b/src/c_fl_choice.cpp index e8c8374..0b7c65c 100644 --- a/src/c_fl_choice.cpp +++ b/src/c_fl_choice.cpp @@ -60,12 +60,12 @@ int fl_choice_value(CHOICE c) { return reinterpret_cast<Fl_Choice*>(c)->value(); } -int fl_choice_set_value(CHOICE c, int p) { - return reinterpret_cast<Fl_Choice*>(c)->value(p); +int fl_choice_set_value(CHOICE c, void * i) { + return reinterpret_cast<Fl_Choice*>(c)->value(reinterpret_cast<Fl_Menu_Item*>(i)); } -int fl_choice_set_value2(CHOICE c, void * i) { - return reinterpret_cast<Fl_Choice*>(c)->value(reinterpret_cast<Fl_Menu_Item*>(i)); +int fl_choice_set_value2(CHOICE c, int p) { + return reinterpret_cast<Fl_Choice*>(c)->value(p); } |