1
0
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:
Simon Tatham 1999-01-15 11:28:11 +00:00
parent b78e127f7c
commit 3352f57942

View 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);