mirror of
https://github.com/aseprite/aseprite.git
synced 2025-01-28 18:32:50 +00:00
Fix infinite loop when rectgrid() is called with w == 0 or h == 0.
This commit is contained in:
parent
525851e6a1
commit
f5ad8c86d3
@ -314,6 +314,9 @@ void rectdotted(BITMAP* bmp, int x1, int y1, int x2, int y2, int fg, int bg)
|
||||
|
||||
void rectgrid(BITMAP* bmp, int x1, int y1, int x2, int y2, int w, int h)
|
||||
{
|
||||
if (w < 1 || h < 1)
|
||||
return;
|
||||
|
||||
int x, y, u, v, c1, c2;
|
||||
|
||||
c1 = makecol_depth(bitmap_color_depth(bmp), 128, 128, 128);
|
||||
|
Loading…
x
Reference in New Issue
Block a user