summaryrefslogtreecommitdiff
path: root/src/c_fl_bitmap.cpp
diff options
context:
space:
mode:
authorJedidiah Barber <contact@jedbarber.id.au>2025-01-16 14:21:05 +1300
committerJedidiah Barber <contact@jedbarber.id.au>2025-01-16 14:21:05 +1300
commitdbf6f4db24aee7315b2782a87e127367887e2036 (patch)
tree91f5af52dbdf6be9e1f5026bcf354a6455dd411d /src/c_fl_bitmap.cpp
parentba1719013e5bab82a2accb4aadfd8451c3ebc931 (diff)
Changed reinterpret_cast to static_cast where applicable
Diffstat (limited to 'src/c_fl_bitmap.cpp')
-rw-r--r--src/c_fl_bitmap.cpp15
1 files changed, 8 insertions, 7 deletions
diff --git a/src/c_fl_bitmap.cpp b/src/c_fl_bitmap.cpp
index 00cb665..01077b2 100644
--- a/src/c_fl_bitmap.cpp
+++ b/src/c_fl_bitmap.cpp
@@ -11,21 +11,21 @@
BITMAP new_fl_bitmap(void *data, int w, int h) {
- Fl_Bitmap *b = new Fl_Bitmap(reinterpret_cast<uchar*>(data), w, h);
+ Fl_Bitmap *b = new Fl_Bitmap(static_cast<uchar*>(data), w, h);
return b;
}
void free_fl_bitmap(BITMAP b) {
- delete reinterpret_cast<Fl_Bitmap*>(b);
+ delete static_cast<Fl_Bitmap*>(b);
}
BITMAP fl_bitmap_copy(BITMAP b, int w, int h) {
// virtual so disable dispatch
- return reinterpret_cast<Fl_Bitmap*>(b)->Fl_Bitmap::copy(w, h);
+ return static_cast<Fl_Bitmap*>(b)->Fl_Bitmap::copy(w, h);
}
BITMAP fl_bitmap_copy2(BITMAP b) {
- return reinterpret_cast<Fl_Bitmap*>(b)->copy();
+ return static_cast<Fl_Bitmap*>(b)->copy();
}
@@ -33,18 +33,19 @@ BITMAP fl_bitmap_copy2(BITMAP b) {
void fl_bitmap_uncache(BITMAP b) {
// virtual so disable dispatch
- reinterpret_cast<Fl_Bitmap*>(b)->Fl_Bitmap::uncache();
+ static_cast<Fl_Bitmap*>(b)->Fl_Bitmap::uncache();
}
void fl_bitmap_draw2(BITMAP b, int x, int y) {
- reinterpret_cast<Fl_Bitmap*>(b)->draw(x, y);
+ static_cast<Fl_Bitmap*>(b)->draw(x, y);
}
void fl_bitmap_draw(BITMAP b, int x, int y, int w, int h, int cx, int cy) {
// virtual so disable dispatch
- reinterpret_cast<Fl_Bitmap*>(b)->Fl_Bitmap::draw(x, y, w, h, cx, cy);
+ static_cast<Fl_Bitmap*>(b)->Fl_Bitmap::draw(x, y, w, h, cx, cy);
}
+