From dbf6f4db24aee7315b2782a87e127367887e2036 Mon Sep 17 00:00:00 2001 From: Jedidiah Barber Date: Thu, 16 Jan 2025 14:21:05 +1300 Subject: Changed reinterpret_cast to static_cast where applicable --- src/c_fl_graphics_driver.h | 26 ++++++++++++-------------- 1 file changed, 12 insertions(+), 14 deletions(-) (limited to 'src/c_fl_graphics_driver.h') 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 + -- cgit