mirror of
https://git.tartarus.org/simon/putty.git
synced 2025-03-22 14:39:24 -05: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;
|
right = (r - 1) / font_width;
|
||||||
top = t / font_height;
|
top = t / font_height;
|
||||||
bottom = (b - 1) / font_height;
|
bottom = (b - 1) / font_height;
|
||||||
for (i = top; i <= bottom && j<rows ; i++)
|
for (i = top; i <= bottom && i < rows ; i++)
|
||||||
for (j = left; j <= right && j<cols ; j++)
|
for (j = left; j <= right && j < cols ; j++)
|
||||||
disptext[i*(cols+1)+j] = ATTR_INVALID;
|
disptext[i*(cols+1)+j] = ATTR_INVALID;
|
||||||
|
|
||||||
do_paint (ctx, FALSE);
|
do_paint (ctx, FALSE);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user