diff options
author | Jed Barber <jjbarber@y7mail.com> | 2018-04-21 00:19:09 +1000 |
---|---|---|
committer | Jed Barber <jjbarber@y7mail.com> | 2018-04-21 00:19:09 +1000 |
commit | ae3aaf71338960e85d27c88d7004497409c6a6d9 (patch) | |
tree | ef32eb7dcd82406fe4c65df53944d4f6ca9ab04c /src/c_fl_bitmap.cpp | |
parent | 5c1f074e4db5d2e701011c60cc3e6f486fb2ecf4 (diff) |
More polishing, fixing of minor overlooked things, etc
Diffstat (limited to 'src/c_fl_bitmap.cpp')
-rw-r--r-- | src/c_fl_bitmap.cpp | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/src/c_fl_bitmap.cpp b/src/c_fl_bitmap.cpp index ce1c221..38665b5 100644 --- a/src/c_fl_bitmap.cpp +++ b/src/c_fl_bitmap.cpp @@ -4,12 +4,14 @@ #include "c_fl_bitmap.h" + + void free_fl_bitmap(BITMAP b) { delete reinterpret_cast<Fl_Bitmap*>(b); } BITMAP fl_bitmap_copy(BITMAP b, int w, int h) { - return reinterpret_cast<Fl_Bitmap*>(b)->copy(w, h); + return reinterpret_cast<Fl_Bitmap*>(b)->Fl_Bitmap::copy(w, h); } BITMAP fl_bitmap_copy2(BITMAP b) { @@ -19,7 +21,11 @@ BITMAP fl_bitmap_copy2(BITMAP b) { +void fl_bitmap_draw2(BITMAP b, int x, int y) { + reinterpret_cast<Fl_Bitmap*>(b)->draw(x, y); +} + void fl_bitmap_draw(BITMAP b, int x, int y, int w, int h, int cx, int cy) { - reinterpret_cast<Fl_Bitmap*>(b)->draw(x, y, w, h, cx, cy); + reinterpret_cast<Fl_Bitmap*>(b)->Fl_Bitmap::draw(x, y, w, h, cx, cy); } |