]> asedeno.scripts.mit.edu Git - PuTTY.git/commitdiff
Fix breakage in window redraw
authorSimon Tatham <anakin@pobox.com>
Fri, 15 Jan 1999 11:28:11 +0000 (11:28 +0000)
committerSimon Tatham <anakin@pobox.com>
Fri, 15 Jan 1999 11:28:11 +0000 (11:28 +0000)
[originally from svn r14]

terminal.c

index feec70a457e5191a07cc709fd5f35a50efb4547f..a935be7dff73992bb96848a836a35bc5c8b9c6f2 100644 (file)
@@ -1254,8 +1254,8 @@ void term_paint (Context ctx, int l, int t, int r, int b) {
     right = (r - 1) / font_width;
     top = t / font_height;
     bottom = (b - 1) / font_height;
-    for (i = top; i <= bottom && j<rows ; i++)
-      for (j = left; j <= right && j<cols ; j++)
+    for (i = top; i <= bottom && i < rows ; i++)
+      for (j = left; j <= right && j < cols ; j++)
            disptext[i*(cols+1)+j] = ATTR_INVALID;
 
     do_paint (ctx, FALSE);