From 60a5fbab34734e5f080fd7c5bb072af74473c68f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lucas=20In=C3=A1cio=20Viegas?= Date: Sat, 29 Nov 2025 10:59:06 -0300 Subject: [PATCH] Cast imageTexture.witdh/height explicitly to float In call to DrawTexturePro. Possible narrowing conversion in C++. --- renderers/raylib/clay_renderer_raylib.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/renderers/raylib/clay_renderer_raylib.c b/renderers/raylib/clay_renderer_raylib.c index 2af4904..3c838b9 100644 --- a/renderers/raylib/clay_renderer_raylib.c +++ b/renderers/raylib/clay_renderer_raylib.c @@ -181,7 +181,7 @@ void Clay_Raylib_Render(Clay_RenderCommandArray renderCommands, Font* fonts) } DrawTexturePro( imageTexture, - CLAY__INIT(Rectangle) { 0, 0, imageTexture.width, imageTexture.height }, + CLAY__INIT(Rectangle) { 0, 0, (float)imageTexture.width, (float)imageTexture.height }, CLAY__INIT(Rectangle){boundingBox.x, boundingBox.y, boundingBox.width, boundingBox.height}, CLAY__INIT(Vector2) {}, 0,