lynx-dev
[Top][All Lists]
Advanced

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

[Lynx-dev] [PATCH 2.8.5] Display charset autoswitch


From: Ilya Zakharevich
Subject: [Lynx-dev] [PATCH 2.8.5] Display charset autoswitch
Date: Tue, 20 Apr 2004 00:40:49 -0700
User-agent: Mutt/1.4i

Formerly, lynx was doing a spurious request to a charset change, which
lead to a flicker on the screen.  I made a workaround to avoid the flicker.

However, nowadays the spurious change does not happen.  So the workaround
causes the first switch not to be made.

Enjoy,
Ilya

--- ./UCAuto.c-pre      Sun Apr 27 16:38:00 2003
+++ ./UCAuto.c  Tue Apr 20 00:22:16 2004
@@ -667,9 +667,12 @@ PUBLIC int Switch_Display_Charset ARGS2 
 
     if (!switch_display_charsets
        && (really == SWITCH_DISPLAY_CHARSET_MAYBE
+#ifdef SWITCH_DISPLAY_CHARSET_NOT_NEEDED_ANY_MORE
            /* The first switch is not due to an interactive action */
            || (really == SWITCH_DISPLAY_CHARSET_REALLY
-               && !(repeated++))))
+               && !(repeated++))
+#endif
+       ))
        return 0;
     res = _Switch_Display_Charset(ord, really);
     if (res < 0 || prev == res)                /* No change */




reply via email to

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