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_menu.cpp | |
parent | 106316bcedec72c5380a7544c27be6a5c117e57a (diff) |
Fixed bug in Fl_Choice binding, filled small hole in Fl_Menu_Button binding
Diffstat (limited to 'src/c_fl_menu.cpp')
-rw-r--r-- | src/c_fl_menu.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/c_fl_menu.cpp b/src/c_fl_menu.cpp index 2ae9289..e42e985 100644 --- a/src/c_fl_menu.cpp +++ b/src/c_fl_menu.cpp @@ -153,12 +153,12 @@ int fl_menu_value(MENU m) { return static_cast<Fl_Menu_*>(m)->value(); } -int fl_menu_set_value(MENU m, int p) { - return static_cast<Fl_Menu_*>(m)->value(p); +int fl_menu_set_value(MENU m, void * i) { + return static_cast<Fl_Menu_*>(m)->value(static_cast<Fl_Menu_Item*>(i)); } -int fl_menu_set_value2(MENU m, void * i) { - return static_cast<Fl_Menu_*>(m)->value(static_cast<Fl_Menu_Item*>(i)); +int fl_menu_set_value2(MENU m, int p) { + return static_cast<Fl_Menu_*>(m)->value(p); } |