bug-ncurses
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Corrections for 20030920


From: Thomas Dickey
Subject: Re: Corrections for 20030920
Date: Fri, 26 Sep 2003 17:58:39 -0400 (EDT)

On Fri, 26 Sep 2003, Philippe Blain wrote:

> >From Philippe Blain, Bordeaux, France.
> My computer: P133 - 8,4 Go - 32 Mo Red Hat Linux 7.0
>
> Corrections for ncurses-5.3-20030920+
>
> 1-----------------------------------------------------------------------
> File : ncurses/tty/tty_update.c
>
> Forgot to change line 1092 as said in NEWS-20030920:
>     ....................
>     if (ceol_standout_glitch && clr_eol) {
>     firstChar = 0;
> ==> while ((firstChar < screen_columns) && !attrchanged) {
>         if (AttrOf(newLine[firstChar]) != AttrOf(oldLine[firstChar]))
>         attrchanged = TRUE;
>         firstChar++;
>     }
>     }
>     ....................

A break statement runs faster - that's what I used:
    if (ceol_standout_glitch && clr_eol) {
        firstChar = 0;
        while (firstChar < screen_columns) {
            if (AttrOf(newLine[firstChar]) != AttrOf(oldLine[firstChar])) {
                attrchanged = TRUE;
                break;
            }
            firstChar++;
        }
    }

-- 
Thomas E. Dickey
http://invisible-island.net
ftp://invisible-island.net




reply via email to

[Prev in Thread] Current Thread [Next in Thread]