diff options
Diffstat (limited to 'src/c_fl_surface_device.cpp')
-rw-r--r-- | src/c_fl_surface_device.cpp | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/c_fl_surface_device.cpp b/src/c_fl_surface_device.cpp index 50088cf..9836a04 100644 --- a/src/c_fl_surface_device.cpp +++ b/src/c_fl_surface_device.cpp @@ -24,12 +24,12 @@ public: // Flattened C API SURFACEDEVICE new_fl_surface_device(void * g) { - My_Surface_Device *s = new My_Surface_Device(reinterpret_cast<Fl_Graphics_Driver*>(g)); + My_Surface_Device *s = new My_Surface_Device(static_cast<Fl_Graphics_Driver*>(g)); return s; } void free_fl_surface_device(SURFACEDEVICE s) { - delete reinterpret_cast<My_Surface_Device*>(s); + delete static_cast<My_Surface_Device*>(s); } @@ -37,7 +37,7 @@ void free_fl_surface_device(SURFACEDEVICE s) { void fl_surface_device_set_current(SURFACEDEVICE s) { // virtual so disable dispatch - reinterpret_cast<Fl_Surface_Device*>(s)->Fl_Surface_Device::set_current(); + static_cast<Fl_Surface_Device*>(s)->Fl_Surface_Device::set_current(); } SURFACEDEVICE fl_surface_device_get_surface(void) { @@ -48,11 +48,11 @@ SURFACEDEVICE fl_surface_device_get_surface(void) { void * fl_surface_device_get_driver(SURFACEDEVICE s) { - return reinterpret_cast<Fl_Surface_Device*>(s)->driver(); + return static_cast<Fl_Surface_Device*>(s)->driver(); } void fl_surface_device_set_driver(SURFACEDEVICE s, void * g) { - reinterpret_cast<Fl_Surface_Device*>(s)->driver(reinterpret_cast<Fl_Graphics_Driver*>(g)); + static_cast<Fl_Surface_Device*>(s)->driver(static_cast<Fl_Graphics_Driver*>(g)); } |