From 68dcb553497a74b3eee11f4cb4db800d3727409d Mon Sep 17 00:00:00 2001 From: raysan5 Date: Sat, 19 Oct 2019 17:26:45 +0200 Subject: [PATCH] Corrected bug on ImageDrawRectangleLines() --- src/textures.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/textures.c b/src/textures.c index d73473de8..ec08e3ac8 100644 --- a/src/textures.c +++ b/src/textures.c @@ -2002,7 +2002,7 @@ void ImageDrawRectangleLines(Image *dst, Rectangle rec, int thick, Color color) ImageDrawRectangle(dst, (Rectangle){ rec.x, rec.y, rec.width, thick }, color); ImageDrawRectangle(dst, (Rectangle){ rec.x, rec.y + thick, thick, rec.height - thick*2 }, color); ImageDrawRectangle(dst, (Rectangle){ rec.x + rec.width - thick, rec.y + thick, thick, rec.height - thick*2 }, color); - ImageDrawRectangle(dst, (Rectangle){ rec.x, rec.height - thick, rec.width, thick }, color); + ImageDrawRectangle(dst, (Rectangle){ rec.x, rec.y + rec.height - thick, rec.width, thick }, color); } // Draw text (default font) within an image (destination)