summaryrefslogtreecommitdiff
path: root/src/c_fl_pixmap.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/c_fl_pixmap.cpp')
-rw-r--r--src/c_fl_pixmap.cpp16
1 files changed, 8 insertions, 8 deletions
diff --git a/src/c_fl_pixmap.cpp b/src/c_fl_pixmap.cpp
index b880bac..6ebcb56 100644
--- a/src/c_fl_pixmap.cpp
+++ b/src/c_fl_pixmap.cpp
@@ -11,16 +11,16 @@
void free_fl_pixmap(PIXMAP b) {
- delete reinterpret_cast<Fl_Pixmap*>(b);
+ delete static_cast<Fl_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);
+ return static_cast<Fl_Pixmap*>(b)->Fl_Pixmap::copy(w, h);
}
PIXMAP fl_pixmap_copy2(PIXMAP b) {
- return reinterpret_cast<Fl_Pixmap*>(b)->copy();
+ return static_cast<Fl_Pixmap*>(b)->copy();
}
@@ -28,12 +28,12 @@ PIXMAP fl_pixmap_copy2(PIXMAP b) {
void fl_pixmap_color_average(PIXMAP p, int c, float b) {
// virtual so disable dispatch
- reinterpret_cast<Fl_Pixmap*>(p)->Fl_Pixmap::color_average(c, b);
+ static_cast<Fl_Pixmap*>(p)->Fl_Pixmap::color_average(c, b);
}
void fl_pixmap_desaturate(PIXMAP p) {
// virtual so disable dispatch
- reinterpret_cast<Fl_Pixmap*>(p)->Fl_Pixmap::desaturate();
+ static_cast<Fl_Pixmap*>(p)->Fl_Pixmap::desaturate();
}
@@ -41,18 +41,18 @@ void fl_pixmap_desaturate(PIXMAP p) {
void fl_pixmap_uncache(PIXMAP p) {
// virtual so disable dispatch
- reinterpret_cast<Fl_Pixmap*>(p)->Fl_Pixmap::uncache();
+ static_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);
+ static_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);
+ static_cast<Fl_Pixmap*>(b)->Fl_Pixmap::draw(x, y, w, h, cx, cy);
}