Fixed valgrind issue. toby_rewrite_1
authorRyan C. Gordon <icculus@icculus.org>
Sun, 23 Apr 2006 06:11:19 +0000
branchtoby_rewrite_1
changeset 302 68865ff929ca
parent 301 2da69f69e80d
Fixed valgrind issue.
unixbits.c
--- a/unixbits.c	Sat Apr 22 20:17:23 2006 +0000
+++ b/unixbits.c	Sun Apr 23 06:11:19 2006 +0000
@@ -252,8 +252,8 @@
     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));
 }