File: fix-ftbfs-incomplete-typedef

package info (click to toggle)
aalib 1.4p5-51.1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 2,592 kB
  • sloc: ansic: 10,404; sh: 7,789; makefile: 90
file content (19 lines) | stat: -rw-r--r-- 664 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
Description: fix-ftbfs-incomplete-typedef 
 This has been caused by a recent change in ncurses which makes the
 WINDOW structure opaque.  Accessing its members directly is no longer
 possible
Bug-Debian: 1057381
Last-Update: 2024-01-25

--- aalib-1.4p5.orig/src/aacurses.c
+++ aalib-1.4p5/src/aacurses.c
@@ -77,8 +77,7 @@ 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;
+    getmaxyx(stdscr, *width, *height);
 #ifdef GPM_MOUSEDRIVER
     gpm_mx = *width;
     gpm_my = *height;