diff options
author | Jed Barber <jjbarber@y7mail.com> | 2017-05-16 22:52:02 +1000 |
---|---|---|
committer | Jed Barber <jjbarber@y7mail.com> | 2017-05-16 22:52:02 +1000 |
commit | 26c270964941639d75d7a4dead0903116e5b62b0 (patch) | |
tree | 8111c923a7f0425d51555588a745bf986ba5429f /src/c_fl_bitmap.cpp | |
parent | 20351ef0d87d7e976dcbbd194bd8376bfde35eb1 (diff) |
Bitmap images added
Diffstat (limited to 'src/c_fl_bitmap.cpp')
-rw-r--r-- | src/c_fl_bitmap.cpp | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/src/c_fl_bitmap.cpp b/src/c_fl_bitmap.cpp new file mode 100644 index 0000000..2481062 --- /dev/null +++ b/src/c_fl_bitmap.cpp @@ -0,0 +1,20 @@ + + +#include <FL/Fl_Bitmap.H> +#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); +} + + +BITMAP fl_bitmap_copy2(BITMAP b) { + return reinterpret_cast<Fl_Bitmap*>(b)->copy(); +} + |