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_rgb_image.cpp | |
parent | 5c1f074e4db5d2e701011c60cc3e6f486fb2ecf4 (diff) |
More polishing, fixing of minor overlooked things, etc
Diffstat (limited to 'src/c_fl_rgb_image.cpp')
-rw-r--r-- | src/c_fl_rgb_image.cpp | 16 |
1 files changed, 12 insertions, 4 deletions
diff --git a/src/c_fl_rgb_image.cpp b/src/c_fl_rgb_image.cpp index e91eec2..3c0fec6 100644 --- a/src/c_fl_rgb_image.cpp +++ b/src/c_fl_rgb_image.cpp @@ -11,7 +11,8 @@ void free_fl_rgb_image(RGB_IMAGE i) { } RGB_IMAGE fl_rgb_image_copy(RGB_IMAGE i, int w, int h) { - return reinterpret_cast<Fl_RGB_Image*>(i)->copy(w, h); + // virtual so disable dispatch + return reinterpret_cast<Fl_RGB_Image*>(i)->Fl_RGB_Image::copy(w, h); } RGB_IMAGE fl_rgb_image_copy2(RGB_IMAGE i) { @@ -22,18 +23,25 @@ RGB_IMAGE fl_rgb_image_copy2(RGB_IMAGE i) { void fl_rgb_image_color_average(RGB_IMAGE i, int c, float b) { - reinterpret_cast<Fl_RGB_Image*>(i)->color_average(c, b); + // virtual so disable dispatch + reinterpret_cast<Fl_RGB_Image*>(i)->Fl_RGB_Image::color_average(c, b); } void fl_rgb_image_desaturate(RGB_IMAGE i) { - reinterpret_cast<Fl_RGB_Image*>(i)->desaturate(); + // virtual so disable dispatch + reinterpret_cast<Fl_RGB_Image*>(i)->Fl_RGB_Image::desaturate(); } +void fl_rgb_image_draw2(RGB_IMAGE i, int x, int y) { + reinterpret_cast<Fl_RGB_Image*>(i)->draw(x, y); +} + void fl_rgb_image_draw(RGB_IMAGE i, int x, int y, int w, int h, int cx, int cy) { - reinterpret_cast<Fl_RGB_Image*>(i)->draw(x, y, w, h, cx, cy); + // virtual so disable dispatch + reinterpret_cast<Fl_RGB_Image*>(i)->Fl_RGB_Image::draw(x, y, w, h, cx, cy); } |