mirror of
https://git.tartarus.org/simon/putty.git
synced 2025-01-09 17:38:00 +00:00
Fix breakage in window redraw
[originally from svn r14]
This commit is contained in:
parent
b78e127f7c
commit
3352f57942
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user