[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: lynx-dev PDCURSES color problem with dev.9 (DJGPP)
From: |
Doug Kaufman |
Subject: |
Re: lynx-dev PDCURSES color problem with dev.9 (DJGPP) |
Date: |
Thu, 24 Oct 2002 22:18:47 -0700 (PDT) |
On Thu, 24 Oct 2002, Thomas Dickey wrote:
> I see the problem. Basically in LYReadCFG.c, I'm using default_fg as
> COLOR_WHITE, which PDCurses (of course) defines to 7, while actually
> using 15 for the color we're calling "white". COLORS in that case is
> 16. What I'll do is add some logic to cover the case where COLORS is 16,
> and set default_fg to 15.
Thanks for the insight. The following patch fixed it for me for now. I
presume that you will come up with a more general fix.
Doug
--- lynx2.8.5dev.9/lynx2-8-5/src/LYCurses.c.orig 2002-10-06
16:43:28.000000000 -0800
+++ lynx2.8.5dev.9/lynx2-8-5/src/LYCurses.c 2002-10-24 22:07:36.000000000
-0800
@@ -615,9 +615,11 @@
*/
PRIVATE int get_color_pair ARGS1(int, n)
{
+#if !defined(PDCURSES)
if (lynx_color_pairs[n].fg == default_fg
&& lynx_color_pairs[n].bg == default_bg)
return 0;
+#endif /* !PDCURSES */
return COLOR_PAIR(n);
}
__
Doug Kaufman
Internet: address@hidden
; To UNSUBSCRIBE: Send "unsubscribe lynx-dev" to address@hidden