From f18ea4474bb4905a00e0b39e7205c177ee994196 Mon Sep 17 00:00:00 2001 From: Jedidiah Barber Date: Tue, 20 Feb 2024 18:04:23 +1300 Subject: Improved binding for the FLTK.Images package subtree --- src/c_fl_pixmap.cpp | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'src/c_fl_pixmap.cpp') diff --git a/src/c_fl_pixmap.cpp b/src/c_fl_pixmap.cpp index 18e6b5d..322f98c 100644 --- a/src/c_fl_pixmap.cpp +++ b/src/c_fl_pixmap.cpp @@ -11,6 +11,7 @@ void free_fl_pixmap(PIXMAP b) { } PIXMAP fl_pixmap_copy(PIXMAP b, int w, int h) { + // virtual so disable dispatch return reinterpret_cast(b)->Fl_Pixmap::copy(w, h); } @@ -34,11 +35,20 @@ void fl_pixmap_desaturate(PIXMAP p) { +void fl_pixmap_uncache(PIXMAP p) { + // virtual so disable dispatch + reinterpret_cast(p)->Fl_Pixmap::uncache(); +} + + + + void fl_pixmap_draw2(PIXMAP b, int x, int y) { reinterpret_cast(b)->draw(x, y); } void fl_pixmap_draw(PIXMAP b, int x, int y, int w, int h, int cx, int cy) { + // virtual so disable dispatch reinterpret_cast(b)->Fl_Pixmap::draw(x, y, w, h, cx, cy); } -- cgit