mirror of
https://github.com/termux/termux-packages.git
synced 2025-08-16 15:53:54 +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
404 B
Diff
15 lines
404 B
Diff
--- a/src/aarender.c
|
|
+++ b/src/aarender.c
|
|
@@ -63,10 +63,10 @@ void aa_renderpalette(aa_context * c, __
|
|
errors[0] = calloc(1, (x2 + 5) * sizeof(int));
|
|
if (errors[0] == NULL)
|
|
dither = AA_ERRORDISTRIB;
|
|
- errors[0] += 3;
|
|
errors[1] = calloc(1, (x2 + 5) * sizeof(int));
|
|
if (errors[1] == NULL)
|
|
free(errors[0]), dither = AA_ERRORDISTRIB;
|
|
+ errors[0] += 3;
|
|
errors[1] += 3;
|
|
cur = 0;
|
|
}
|