Cast imageTexture.witdh/height explicitly to float

In call to DrawTexturePro. Possible narrowing conversion in C++.
This commit is contained in:
Lucas Inácio Viegas 2025-11-29 10:59:06 -03:00
parent fa8f6590ff
commit 60a5fbab34

View file

@ -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,