Explorar o código

Corrected bug on ImageDrawRectangleLines()

raysan5 %!s(int64=5) %!d(string=hai) anos
pai
achega
68dcb55349
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      src/textures.c

+ 1 - 1
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)