diff options
author | Jedidiah Barber <contact@jedbarber.id.au> | 2025-01-16 14:21:05 +1300 |
---|---|---|
committer | Jedidiah Barber <contact@jedbarber.id.au> | 2025-01-16 14:21:05 +1300 |
commit | dbf6f4db24aee7315b2782a87e127367887e2036 (patch) | |
tree | 91f5af52dbdf6be9e1f5026bcf354a6455dd411d /src/c_fl_draw.cpp | |
parent | ba1719013e5bab82a2accb4aadfd8451c3ebc931 (diff) |
Changed reinterpret_cast to static_cast where applicable
Diffstat (limited to 'src/c_fl_draw.cpp')
-rw-r--r-- | src/c_fl_draw.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/c_fl_draw.cpp b/src/c_fl_draw.cpp index a649ceb..ff5477c 100644 --- a/src/c_fl_draw.cpp +++ b/src/c_fl_draw.cpp @@ -16,7 +16,7 @@ void fl_draw_reset_spot() { } void fl_draw_set_spot(int f, int s, int x, int y, int w, int h, void * ptr) { - fl_set_spot(f, s, x, y, w, h, reinterpret_cast<Fl_Window*>(ptr)); + fl_set_spot(f, s, x, y, w, h, static_cast<Fl_Window*>(ptr)); } void fl_draw_set_status(int x, int y, int w, int h) { @@ -201,7 +201,7 @@ void fl_draw_vertex(double x, double y) { void fl_draw_draw_image(void * data, int x, int y, int w, int h, int d, int l) { - fl_draw_image(reinterpret_cast<uchar*>(data), x, y, w, h, d, l); + fl_draw_image(static_cast<uchar*>(data), x, y, w, h, d, l); } void fl_draw_draw_image2(void * func, void * data, int x, int y, int w, int h, int d) { @@ -209,7 +209,7 @@ void fl_draw_draw_image2(void * func, void * data, int x, int y, int w, int h, i } void fl_draw_draw_image_mono(void * data, int x, int y, int w, int h, int d, int l) { - fl_draw_image_mono(reinterpret_cast<uchar*>(data), x, y, w, h, d, l); + fl_draw_image_mono(static_cast<uchar*>(data), x, y, w, h, d, l); } void fl_draw_draw_image_mono2(void * func, void * data, int x, int y, int w, int h, int d) { @@ -217,7 +217,7 @@ void fl_draw_draw_image_mono2(void * func, void * data, int x, int y, int w, int } void * fl_draw_read_image(void * data, int x, int y, int w, int h, int alpha) { - return fl_read_image(reinterpret_cast<uchar*>(data), x, y, w, h, alpha); + return fl_read_image(static_cast<uchar*>(data), x, y, w, h, alpha); } |