summaryrefslogtreecommitdiffhomepage
path: root/src/rtextures.c
diff options
context:
space:
mode:
authorRay <[email protected]>2023-04-25 15:15:57 +0200
committerRay <[email protected]>2023-04-25 15:15:57 +0200
commit64f2f86d325a46856c9f5b6fb28b32a0ad9d5abd (patch)
tree6b2f5efb5f3538d1b06ce065b11d73df799cd39d /src/rtextures.c
parent6472928cf1443fdac73abee356709b7e529f62b4 (diff)
downloadraylib-64f2f86d325a46856c9f5b6fb28b32a0ad9d5abd.tar.gz
raylib-64f2f86d325a46856c9f5b6fb28b32a0ad9d5abd.zip
Update rtextures.c
Diffstat (limited to 'src/rtextures.c')
-rw-r--r--src/rtextures.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/rtextures.c b/src/rtextures.c
index 3c535d9d..d83d11e5 100644
--- a/src/rtextures.c
+++ b/src/rtextures.c
@@ -3000,7 +3000,7 @@ void ImageDrawRectangleRec(Image *dst, Rectangle rec, Color color)
if (rec.x < 0) { rec.width -= rec.x; rec.x = 0; }
if (rec.y < 0) { rec.height -= rec.y; rec.y = 0; }
if (rec.width < 0) rec.width = 0;
- if (rec.heigh < 0) rec.height = 0;
+ if (rec.height < 0) rec.height = 0;
int sy = (int)rec.y;
int ey = sy + (int)rec.height;