]> asedeno.scripts.mit.edu Git - PuTTY.git/commitdiff
Fix Windows redraw problem on RH half of wrapped lines. (term_paint
authorSimon Tatham <anakin@pobox.com>
Fri, 15 Oct 2004 09:16:58 +0000 (09:16 +0000)
committerSimon Tatham <anakin@pobox.com>
Fri, 15 Oct 2004 09:16:58 +0000 (09:16 +0000)
was checking whether lattr == LATTR_NORM, where it should have been
checking (lattr & LATTR_MODE) to mask off LATTR_WRAPPED et al.

[originally from svn r4627]

terminal.c

index 7bcbaf90540c3e9121a96c2d449e88178b42fc47..708ffc8c64907751bfe389b710124267d3dc35b9 100644 (file)
@@ -4665,7 +4665,7 @@ void term_paint(Terminal *term, Context ctx,
     if (bottom >= term->rows) bottom = term->rows-1;
 
     for (i = top; i <= bottom && i < term->rows; i++) {
-       if (term->disptext[i]->lattr == LATTR_NORM)
+       if ((term->disptext[i]->lattr & LATTR_MODE) == LATTR_NORM)
            for (j = left; j <= right && j < term->cols; j++)
                term->disptext[i]->chars[j].attr = ATTR_INVALID;
        else