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_tiled_image.h | 27 +++++++++++---------------- 1 file changed, 11 insertions(+), 16 deletions(-) (limited to 'src/c_fl_tiled_image.h') diff --git a/src/c_fl_tiled_image.h b/src/c_fl_tiled_image.h index 95d202b..9eee3dd 100644 --- a/src/c_fl_tiled_image.h +++ b/src/c_fl_tiled_image.h @@ -8,31 +8,26 @@ #define FL_TILED_IMAGE_GUARD +typedef void* TILEDIMAGE; -typedef void* TILED_IMAGE; +extern "C" TILEDIMAGE new_fl_tiled_image(void * i, int w, int h); +extern "C" void free_fl_tiled_image(TILEDIMAGE t); +extern "C" TILEDIMAGE fl_tiled_image_copy(TILEDIMAGE t, int w, int h); +extern "C" TILEDIMAGE fl_tiled_image_copy2(TILEDIMAGE t); +extern "C" void * fl_tiled_image_get_image(TILEDIMAGE t); -extern "C" TILED_IMAGE new_fl_tiled_image(void * i, int w, int h); -extern "C" void free_fl_tiled_image(TILED_IMAGE t); -extern "C" TILED_IMAGE fl_tiled_image_copy(TILED_IMAGE t, int w, int h); -extern "C" TILED_IMAGE fl_tiled_image_copy2(TILED_IMAGE t); +extern "C" void fl_tiled_image_color_average(TILEDIMAGE t, int c, float b); +extern "C" void fl_tiled_image_desaturate(TILEDIMAGE t); - - -extern "C" void * fl_tiled_image_get_image(TILED_IMAGE t); - - -extern "C" void fl_tiled_image_color_average(TILED_IMAGE t, int c, float b); -extern "C" void fl_tiled_image_desaturate(TILED_IMAGE t); - - -extern "C" void fl_tiled_image_draw(TILED_IMAGE t, int x, int y); -extern "C" void fl_tiled_image_draw2(TILED_IMAGE t, int x, int y, int w, int h, int cx, int cy); +extern "C" void fl_tiled_image_draw(TILEDIMAGE t, int x, int y); +extern "C" void fl_tiled_image_draw2(TILEDIMAGE t, int x, int y, int w, int h, int cx, int cy); #endif + -- cgit