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_graphics_driver.h | |
parent | ba1719013e5bab82a2accb4aadfd8451c3ebc931 (diff) |
Changed reinterpret_cast to static_cast where applicable
Diffstat (limited to 'src/c_fl_graphics_driver.h')
-rw-r--r-- | src/c_fl_graphics_driver.h | 26 |
1 files changed, 12 insertions, 14 deletions
diff --git a/src/c_fl_graphics_driver.h b/src/c_fl_graphics_driver.h index f68ad1f..e070235 100644 --- a/src/c_fl_graphics_driver.h +++ b/src/c_fl_graphics_driver.h @@ -8,27 +8,25 @@ #define FL_GRAPHICS_DRIVER_GUARD +typedef void* GRAPHICSDRIVER; -typedef void* GRAPHICS_DRIVER; +extern "C" unsigned int fl_graphics_driver_color(GRAPHICSDRIVER g); +extern "C" int fl_graphics_driver_descent(GRAPHICSDRIVER g); +extern "C" int fl_graphics_driver_height(GRAPHICSDRIVER g); +extern "C" double fl_graphics_driver_width(GRAPHICSDRIVER g, unsigned int c); +extern "C" double fl_graphics_driver_width2(GRAPHICSDRIVER g, const char * s, int l); +extern "C" int fl_graphics_driver_get_font(GRAPHICSDRIVER g); +extern "C" int fl_graphics_driver_size(GRAPHICSDRIVER g); +extern "C" void fl_graphics_driver_set_font(GRAPHICSDRIVER g, int f, int s); -extern "C" unsigned int fl_graphics_driver_color(GRAPHICS_DRIVER g); - - -extern "C" int fl_graphics_driver_descent(GRAPHICS_DRIVER g); -extern "C" int fl_graphics_driver_height(GRAPHICS_DRIVER g); -extern "C" double fl_graphics_driver_width(GRAPHICS_DRIVER g, unsigned int c); -extern "C" double fl_graphics_driver_width2(GRAPHICS_DRIVER g, const char * s, int l); -extern "C" int fl_graphics_driver_get_font(GRAPHICS_DRIVER g); -extern "C" int fl_graphics_driver_size(GRAPHICS_DRIVER g); -extern "C" void fl_graphics_driver_set_font(GRAPHICS_DRIVER g, int f, int s); - - -extern "C" void fl_graphics_driver_draw_scaled(GRAPHICS_DRIVER g, void * i, int x, int y, int w, int h); +extern "C" void fl_graphics_driver_draw_scaled(GRAPHICSDRIVER g, void * i, + int x, int y, int w, int h); #endif + |