From d9d4ade409baad51c2970984935477ad2418105c Mon Sep 17 00:00:00 2001 From: Fatih Gungor Date: Sat, 21 Jun 2025 14:47:47 +0200 Subject: [PATCH] feat: make imageData const --- clay.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/clay.h b/clay.h index 5dd2bc6..489df12 100644 --- a/clay.h +++ b/clay.h @@ -413,7 +413,7 @@ CLAY__WRAPPER_STRUCT(Clay_AspectRatioElementConfig); // Controls various settings related to image elements. typedef struct Clay_ImageElementConfig { - void* imageData; // A transparent pointer used to pass image data through to the renderer. + const void* imageData; // A transparent pointer used to pass image data through to the renderer. } Clay_ImageElementConfig; CLAY__WRAPPER_STRUCT(Clay_ImageElementConfig); @@ -587,7 +587,7 @@ typedef struct Clay_ImageRenderData { // The rounding is determined by drawing a circle inset into the element corner by (radius, radius) pixels. Clay_CornerRadius cornerRadius; // A pointer transparently passed through from the original element definition, typically used to represent image data. - void* imageData; + const void* imageData; } Clay_ImageRenderData; // Render command data when commandType == CLAY_RENDER_COMMAND_TYPE_CUSTOM