summaryrefslogtreecommitdiff
path: root/src/c_fl_shared_image.h
diff options
context:
space:
mode:
authorJedidiah Barber <contact@jedbarber.id.au>2025-01-16 14:21:05 +1300
committerJedidiah Barber <contact@jedbarber.id.au>2025-01-16 14:21:05 +1300
commitdbf6f4db24aee7315b2782a87e127367887e2036 (patch)
tree91f5af52dbdf6be9e1f5026bcf354a6455dd411d /src/c_fl_shared_image.h
parentba1719013e5bab82a2accb4aadfd8451c3ebc931 (diff)
Changed reinterpret_cast to static_cast where applicable
Diffstat (limited to 'src/c_fl_shared_image.h')
-rw-r--r--src/c_fl_shared_image.h41
1 files changed, 18 insertions, 23 deletions
diff --git a/src/c_fl_shared_image.h b/src/c_fl_shared_image.h
index bd5b555..dbe0352 100644
--- a/src/c_fl_shared_image.h
+++ b/src/c_fl_shared_image.h
@@ -8,40 +8,35 @@
#define FL_SHARED_IMAGE_GUARD
+typedef void* SHAREDIMAGE;
-typedef void* SHARED_IMAGE;
+extern "C" SHAREDIMAGE fl_shared_image_get(const char * f, int w, int h);
+extern "C" SHAREDIMAGE fl_shared_image_get2(void * r);
+extern "C" SHAREDIMAGE fl_shared_image_find(const char * n, int w, int h);
+extern "C" void fl_shared_image_release(SHAREDIMAGE i);
+extern "C" SHAREDIMAGE fl_shared_image_copy(SHAREDIMAGE i, int w, int h);
+extern "C" SHAREDIMAGE fl_shared_image_copy2(SHAREDIMAGE i);
-
-
-extern "C" SHARED_IMAGE fl_shared_image_get(const char * f, int w, int h);
-extern "C" SHARED_IMAGE fl_shared_image_get2(void * r);
-extern "C" SHARED_IMAGE fl_shared_image_find(const char * n, int w, int h);
-extern "C" void fl_shared_image_release(SHARED_IMAGE i);
-extern "C" SHARED_IMAGE fl_shared_image_copy(SHARED_IMAGE i, int w, int h);
-extern "C" SHARED_IMAGE fl_shared_image_copy2(SHARED_IMAGE i);
-
-
-
-
-extern "C" void fl_shared_image_color_average(SHARED_IMAGE i, int c, float b);
-extern "C" void fl_shared_image_desaturate(SHARED_IMAGE i);
+extern "C" void fl_shared_image_color_average(SHAREDIMAGE i, int c, float b);
+extern "C" void fl_shared_image_desaturate(SHAREDIMAGE i);
extern "C" int fl_shared_image_num_images();
-extern "C" const char * fl_shared_image_name(SHARED_IMAGE i);
-extern "C" int fl_shared_image_original(SHARED_IMAGE i);
-extern "C" int fl_shared_image_refcount(SHARED_IMAGE i);
-extern "C" void fl_shared_image_reload(SHARED_IMAGE i);
-extern "C" void fl_shared_image_uncache(SHARED_IMAGE i);
+extern "C" const char * fl_shared_image_name(SHAREDIMAGE i);
+extern "C" int fl_shared_image_original(SHAREDIMAGE i);
+extern "C" int fl_shared_image_refcount(SHAREDIMAGE i);
+extern "C" void fl_shared_image_reload(SHAREDIMAGE i);
+extern "C" void fl_shared_image_uncache(SHAREDIMAGE i);
extern "C" void fl_shared_image_scaling_algorithm(int v);
-extern "C" void fl_shared_image_scale(SHARED_IMAGE i, int w, int h, int p, int e);
-extern "C" void fl_shared_image_draw(SHARED_IMAGE i, int x, int y, int w, int h, int cx, int cy);
-extern "C" void fl_shared_image_draw2(SHARED_IMAGE i, int x, int y);
+extern "C" void fl_shared_image_scale(SHAREDIMAGE i, int w, int h, int p, int e);
+extern "C" void fl_shared_image_draw(SHAREDIMAGE i, int x, int y, int w, int h, int cx, int cy);
+extern "C" void fl_shared_image_draw2(SHAREDIMAGE i, int x, int y);
#endif
+