[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Lynx-dev] SLang 2.x and USE_SCROLLBAR
From: |
Gisle Vanem |
Subject: |
[Lynx-dev] SLang 2.x and USE_SCROLLBAR |
Date: |
Mon, 17 Oct 2005 21:58:57 +0200 |
Slang 2.x did redefine SLsmg_Char_Type in a way
that broke our addch_raw() macro. This is used only
inside USE_SCROLLBAR code. An easy patch:
--- orig/src/LYCurses.h Thu Jun 02 21:36:59 2005
+++ src/LYCurses.h Mon Oct 17 21:54:42 2005
@@ -519,11 +519,22 @@
#endif
#define LYaddch(ch) SLsmg_write_char(ch)
+#if SLANG_VERSION >= 20000
+#define addch_raw(ch) do { \
+ SLsmg_Char_Type buf; \
+ buf.nchars = 1; \
+ buf.wchars[0] = ch; \
+ buf.color = Current_Attr; \
+ SLsmg_write_raw (&buf, 1); \
+ } while (0)
+#else
#define addch_raw(ch) do { \
SLsmg_Char_Type buf; \
buf = (ch) | (Current_Attr << 4); \
SLsmg_write_raw (&buf, 1); \
} while (0)
+#endif
+
#define echo()
#define printw SLsmg_printf
------------
--gv
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Lynx-dev] SLang 2.x and USE_SCROLLBAR,
Gisle Vanem <=