aboutsummaryrefslogtreecommitdiffstats
path: root/community/retawq/ncurses-opaque.patch
blob: 910360d435ff6839d902b0d50b55959c590eb2fa (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
--- a/main.c
+++ b/main.c
@@ -4525,10 +4525,10 @@
 
 #if TGC_IS_CURSES
 static my_inline void __curleft(void)
-{ (void) move(stdscr->_cury, stdscr->_curx - 1);
+{ (void) move(getcury(stdscr), getcurx(stdscr) - 1);
 }
 static my_inline void __curright(void)
-{ (void) move(stdscr->_cury, stdscr->_curx + 1);
+{ (void) move(getcury(stdscr), getcurx(stdscr) + 1);
 }
 #endif