Skip to content

Commit

Permalink
Fixed valgrind issue.
Browse files Browse the repository at this point in the history
  • Loading branch information
icculus committed Apr 23, 2006
1 parent 3a4015c commit fa27905
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions unixbits.c
Expand Up @@ -252,8 +252,8 @@ int _imagesize(int x1, int y1, int x2, int y2)
if (y2 >= GScreen->h)
y2 = GScreen->h - 1;

w = x2 - x1;
h = y2 - y1;
w = (x2 - x1) + 1;
h = (y2 - y1) + 1;

return (sizeof (Uint32) + sizeof (Uint32) + (w * h * 4));
}
Expand Down

0 comments on commit fa27905

Please sign in to comment.