mirror of
https://github.com/nicbarker/clay.git
synced 2025-12-23 17:41:06 +00:00
Cast imageTexture.witdh/height explicitly to float
In call to DrawTexturePro. Possible narrowing conversion in C++.
This commit is contained in:
parent
fa8f6590ff
commit
60a5fbab34
|
|
@ -181,7 +181,7 @@ void Clay_Raylib_Render(Clay_RenderCommandArray renderCommands, Font* fonts)
|
||||||
}
|
}
|
||||||
DrawTexturePro(
|
DrawTexturePro(
|
||||||
imageTexture,
|
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(Rectangle){boundingBox.x, boundingBox.y, boundingBox.width, boundingBox.height},
|
||||||
CLAY__INIT(Vector2) {},
|
CLAY__INIT(Vector2) {},
|
||||||
0,
|
0,
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue