mirror of
https://github.com/termux/termux-packages.git
synced 2025-02-22 15:47:26 +00:00
Fixes "`error: incomplete definition of type 'struct _win_st'`" during
build.
Progress on https://github.com/termux/termux-packages/issues/21130
Copied and pasted from 05e22fdc66
`0005-aalib-m4.patch`: Fix --with-aalib-prefix argument
`0006-aalib-c99.patch`: Fix builtin-declaration-mismatch compiler warnings
`0007-aalib-free-offset-pointer.patch`: Fix free-nonheap-object compiler warning
`0008-aalib-key-down-OOB.patch`: Fix aggressive-loop-optimizations compiler warning
`0009-aalib-aalinuxkbd-return.patch`: Fix 'return' with no value compiler warning
`0010-aalib-opaque-ncurses-fix.patch`: Fix build for ncurses built with opaque-curses option
`0011-aalib-fix-aarender.patch`: Fix rendering with custom aspect ratio
`0012-aalib-mouse.patch`: Fix typo for KEY_MOUSE condition
15 lines
618 B
Diff
15 lines
618 B
Diff
diff -up aalib-1.4.0/src/aacurses.c.opaque-ncurses-fix aalib-1.4.0/src/aacurses.c
|
|
--- aalib-1.4.0/src/aacurses.c.opaque-ncurses-fix 2024-02-10 06:32:32.008267145 -0500
|
|
+++ aalib-1.4.0/src/aacurses.c 2024-02-10 06:33:38.648245270 -0500
|
|
@@ -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);
|
|
+ *height = getmaxy(stdscr);
|
|
#ifdef GPM_MOUSEDRIVER
|
|
gpm_mx = *width;
|
|
gpm_my = *height;
|