diff options
author | hubertf <hubertf> | 2000-05-04 01:48:11 +0000 |
---|---|---|
committer | hubertf <hubertf> | 2000-05-04 01:48:11 +0000 |
commit | fa1da6a6151e8aa110e79a076c92c83f3772e74b (patch) | |
tree | 61a80c992bf755a6d3fb262040b105201e729848 /games | |
parent | e910e4a914c3ab286509aa799a8581497ff12c9a (diff) | |
download | pkgsrc-fa1da6a6151e8aa110e79a076c92c83f3772e74b.tar.gz |
Don't use curses internal functions.
Code submitted by Brett Lymn <blymn@baesystems.com.au>
(via Thomas Klausner <wiz@danbala.ifoer.tuwien.ac.at>)
Diffstat (limited to 'games')
-rw-r--r-- | games/angband-tty/files/patch-sum | 3 | ||||
-rw-r--r-- | games/angband-tty/patches/patch-ad | 49 |
2 files changed, 51 insertions, 1 deletions
diff --git a/games/angband-tty/files/patch-sum b/games/angband-tty/files/patch-sum index 6ea7882b2e1..55cb6ad9a12 100644 --- a/games/angband-tty/files/patch-sum +++ b/games/angband-tty/files/patch-sum @@ -1,5 +1,6 @@ -$NetBSD: patch-sum,v 1.1 1999/07/09 13:50:50 agc Exp $ +$NetBSD: patch-sum,v 1.2 2000/05/04 01:48:11 hubertf Exp $ MD5 (patch-aa) = 2fdadbe185b782894440e551bce68a00 MD5 (patch-ab) = f50991b2bc8dcab42124e7eff61027b9 MD5 (patch-ac) = 7581301acb521031bef2f97c4c6e909a +MD5 (patch-ad) = 67f42a16a695dbb6cf320fee298ce8ab diff --git a/games/angband-tty/patches/patch-ad b/games/angband-tty/patches/patch-ad new file mode 100644 index 00000000000..b187c5b0fa3 --- /dev/null +++ b/games/angband-tty/patches/patch-ad @@ -0,0 +1,49 @@ +$NetBSD: patch-ad,v 1.1 2000/05/04 01:48:12 hubertf Exp $ + +--- main-gcu.c.orig Thu May 4 03:37:38 2000 ++++ main-gcu.c Thu May 4 03:41:22 2000 +@@ -458,6 +458,14 @@ + /* Flush the curses buffer */ + (void)refresh(); + ++#ifdef __NetBSD__ ++ { ++ int cury, curx; ++ ++ getyx(curscr, cury, curx); ++ mvcur(cury, curx, LINES - 1, 0); ++ } ++#else + #ifdef SPECIAL_BSD + /* this moves curses to bottom right corner */ + mvcur(curscr->cury, curscr->curx, LINES - 1, 0); +@@ -465,6 +473,7 @@ + /* this moves curses to bottom right corner */ + mvcur(curscr->_cury, curscr->_curx, LINES - 1, 0); + #endif ++#endif + + /* Exit curses */ + endwin(); +@@ -529,12 +538,21 @@ + /* Hack -- make sure the cursor is visible */ + Term_xtra(TERM_XTRA_SHAPE, 1); + ++#ifdef __NetBSD__ ++ { ++ int cury, curx; ++ ++ getyx(curscr, cury, curx); ++ mvcur(cury, curx, LINES - 1, 0); ++ } ++#else + #ifdef SPECIAL_BSD + /* This moves curses to bottom right corner */ + mvcur(curscr->cury, curscr->curx, LINES - 1, 0); + #else + /* This moves curses to bottom right corner */ + mvcur(curscr->_cury, curscr->_curx, LINES - 1, 0); ++#endif + #endif + + /* Flush the curses buffer */ |