summaryrefslogtreecommitdiffhomepage
path: root/src/textures.c
diff options
context:
space:
mode:
authorRay <[email protected]>2018-11-09 23:09:02 +0100
committerRay <[email protected]>2018-11-09 23:09:02 +0100
commit5167f78d5f64dfe2a4110102a0a7c1ca197d7c75 (patch)
tree5472620670400559918fcd8e5ff123a99fd33d11 /src/textures.c
parent6428317739e1fe978e00527c2d2ea87c757a96db (diff)
downloadraylib-5167f78d5f64dfe2a4110102a0a7c1ca197d7c75.tar.gz
raylib-5167f78d5f64dfe2a4110102a0a7c1ca197d7c75.zip
ADDED: OpenURL()
Corrected bug on ImageDrawRectangleLines()
Diffstat (limited to 'src/textures.c')
-rw-r--r--src/textures.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/textures.c b/src/textures.c
index 6249287d..fce1092a 100644
--- a/src/textures.c
+++ b/src/textures.c
@@ -1741,10 +1741,10 @@ void ImageDrawRectangle(Image *dst, Rectangle rec, Color color)
// Draw rectangle lines within an image
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.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);
}
// Draw text (default font) within an image (destination)