summaryrefslogtreecommitdiff
path: root/src/c_fl_pixmap.cpp
diff options
context:
space:
mode:
authorJedidiah Barber <contact@jedbarber.id.au>2024-02-20 18:04:23 +1300
committerJedidiah Barber <contact@jedbarber.id.au>2024-02-20 18:04:23 +1300
commitf18ea4474bb4905a00e0b39e7205c177ee994196 (patch)
tree67a06833192e0f47695ab872badb88fb0970280a /src/c_fl_pixmap.cpp
parentc47bea48a24e51e178354f3e3bb53d8b9964b769 (diff)
Improved binding for the FLTK.Images package subtree
Diffstat (limited to 'src/c_fl_pixmap.cpp')
-rw-r--r--src/c_fl_pixmap.cpp10
1 files changed, 10 insertions, 0 deletions
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<Fl_Pixmap*>(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<Fl_Pixmap*>(p)->Fl_Pixmap::uncache();
+}
+
+
+
+
void fl_pixmap_draw2(PIXMAP b, int x, int y) {
reinterpret_cast<Fl_Pixmap*>(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<Fl_Pixmap*>(b)->Fl_Pixmap::draw(x, y, w, h, cx, cy);
}