diff options
author | wiz <wiz@pkgsrc.org> | 2003-07-12 12:05:01 +0000 |
---|---|---|
committer | wiz <wiz@pkgsrc.org> | 2003-07-12 12:05:01 +0000 |
commit | b20e82d14a039488b2b82395c9b20a94b717529a (patch) | |
tree | 5e62f2b379f55ca98831af3accbdc88b605b9868 /chat/licq-gui-console/patches | |
parent | 442f146eeaa344b47896f27911b74a0bff080cef (diff) | |
download | pkgsrc-b20e82d14a039488b2b82395c9b20a94b717529a.tar.gz |
Make it build under -current without using ncurses.
It was using internals of ncurses data structures even though there's
an official API for this...
XXX: might need INCOMPAT_CURSES patterns for some older NetBSD versions,
but I don't know which ones, so I didn't add them.
Diffstat (limited to 'chat/licq-gui-console/patches')
-rw-r--r-- | chat/licq-gui-console/patches/patch-aa | 39 |
1 files changed, 39 insertions, 0 deletions
diff --git a/chat/licq-gui-console/patches/patch-aa b/chat/licq-gui-console/patches/patch-aa new file mode 100644 index 00000000000..4f3492e5574 --- /dev/null +++ b/chat/licq-gui-console/patches/patch-aa @@ -0,0 +1,39 @@ +$NetBSD: patch-aa,v 1.1 2003/07/12 12:05:01 wiz Exp $ + +--- src/window.cpp.orig Mon Dec 10 15:05:49 2001 ++++ src/window.cpp +@@ -147,7 +147,10 @@ void CWindow::wprintf(char *formatIn, .. + va_list argp; + char formatOut[1024], out[1024]; + unsigned short i = 0, j = 0; +- attr_t save = win->_attrs; ++ attr_t save; ++ short dummy; ++ ++ wattr_get(win, &save, &dummy, NULL); + + va_start(argp, formatIn); + +@@ -163,12 +166,7 @@ void CWindow::wprintf(char *formatIn, .. + { + case 'C': // set color + i++; +-//#if NCURSES_VERSION_PATCH < 990213 +- win->_attrs &= ~A_COLOR; +- win->_attrs |= COLOR_PAIR(va_arg(argp, int)); +-//#else +-// wcolor_set(win, va_arg(argp, short), NULL); +-//#endif ++ wattr_set(win, save & ~A_COLOR, va_arg(argp, short), NULL); + while((formatIn[i]) && (formatIn[i] != '%') && j < 1022) formatOut[j++] = formatIn[i++]; + formatOut[j] = '\0'; + *this << formatOut; +@@ -213,7 +211,7 @@ void CWindow::wprintf(char *formatIn, .. + } + va_end(argp); + +- win->_attrs = save; ++ wattr_set(win, save, dummy, NULL); + } + + |