From bb96b920d34eed642a5076d21684aeb1f36ef044 Mon Sep 17 00:00:00 2001 From: Ray Date: Fri, 3 Jul 2026 11:31:45 +0200 Subject: [PATCH] Update rtextures.c --- src/rtextures.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/rtextures.c b/src/rtextures.c index 6092cb57c..41ee1ffd1 100644 --- a/src/rtextures.c +++ b/src/rtextures.c @@ -3927,7 +3927,7 @@ void ImageDrawRectanglePro(Image *dst, Rectangle rec, Vector2 origin, float rota // Draw rectangle lines within an image void ImageDrawRectangleLines(Image *dst, int posX, int posY, int width, int height, Color color) { - Rectangle rec = { posX, posY, width, height }; + Rectangle rec = { (float)posX, (float)posY, (float)width, (float)height }; ImageDrawRectangleLinesEx(dst, rec, 1, color); } @@ -4019,8 +4019,8 @@ void ImageDrawCircleGradient(Image *dst, Vector2 center, float radius, Color inn // Draw an image within an image void ImageDrawImage(Image *dst, Image src, int posX, int posY, Color tint) { - Rectangle srcRec = { 0, 0, src.width, src.height }; - Rectangle dstRec = { posX, posY, srcRec.width, srcRec.height }; + Rectangle srcRec = { 0.0f, 0.0f, (float)src.width, (float)src.height }; + Rectangle dstRec = { (float)posX, (float)posY, srcRec.width, srcRec.height }; ImageDrawImagePro(dst, src, srcRec, dstRec, (Vector2){ 0 }, 0.0f, tint); }