forked from pool/aalib
- Add aalib-ncurses-6.0-accessors.patch: Fix build with NCurses 6.0 with WINDOW_OPAQUE set to 1. OBS-URL: https://build.opensuse.org/request/show/330007 OBS-URL: https://build.opensuse.org/package/show/devel:libraries:c_c++/aalib?expand=0&rev=28
16 lines
560 B
Diff
16 lines
560 B
Diff
Index: aalib-1.4.0/src/aacurses.c
|
|
===================================================================
|
|
--- aalib-1.4.0.orig/src/aacurses.c
|
|
+++ aalib-1.4.0/src/aacurses.c
|
|
@@ -71,8 +71,8 @@ static void curses_getsize(aa_context *
|
|
{
|
|
if (__resized_curses)
|
|
curses_uninit(c), curses_init(&c->params, NULL,&c->driverparams, NULL), __resized_curses = 0;
|
|
- *width = stdscr->_maxx + 1;
|
|
- *height = stdscr->_maxy + 1;
|
|
+ *width = getmaxx(stdscr) + 1;
|
|
+ *height = getmaxy(stdscr) + 1;
|
|
#ifdef GPM_MOUSEDRIVER
|
|
gpm_mx = *width;
|
|
gpm_my = *height;
|