aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorraysan5 <raysan5@gmail.com>2019-10-19 17:26:45 +0200
committerraysan5 <raysan5@gmail.com>2019-10-19 17:26:45 +0200
commit68dcb553497a74b3eee11f4cb4db800d3727409d (patch)
treebcbc6033b4f5f1c3d895057e61da8d174dd96819
parentb75511248dfa53b20ff915b7f4a2b1b4e31925b9 (diff)
downloadraylib-68dcb553497a74b3eee11f4cb4db800d3727409d.tar.gz
raylib-68dcb553497a74b3eee11f4cb4db800d3727409d.zip
Corrected bug on ImageDrawRectangleLines()
-rw-r--r--src/textures.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/textures.c b/src/textures.c
index d73473de..ec08e3ac 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)