diff options
Diffstat (limited to 'c_fl_return_button.cpp')
-rw-r--r-- | c_fl_return_button.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/c_fl_return_button.cpp b/c_fl_return_button.cpp index fb0ade2..5f87fb3 100644 --- a/c_fl_return_button.cpp +++ b/c_fl_return_button.cpp @@ -4,13 +4,13 @@ #include "c_fl_return_button.h" -my_fl_return_button new_fl_return_button(int x, int y, int w, int h, char * label) { - Fl_Return_Button *button = new Fl_Return_Button(x, y, w, h, label); - return button; +RETURNBUTTON new_fl_return_button(int x, int y, int w, int h, char* label) { + Fl_Return_Button *b = new Fl_Return_Button(x, y, w, h, label); + return b; } -void free_fl_return_button(my_fl_return_button b) { +void free_fl_return_button(RETURNBUTTON b) { delete reinterpret_cast<Fl_Return_Button*>(b); } |