diff options
author | 2016-09-06 23:20:11 +0500 | |
---|---|---|
committer | 2016-09-14 13:18:17 +0200 | |
commit | c03d1e966a8455897002f7ab108877564af28947 (patch) | |
tree | 7745d49fded219686b977609362617c9e6fa56d1 /dev-games/aseprite/files | |
parent | media-video/rtmpdump: Move to EAPI6 and git-r3. (diff) | |
download | gentoo-c03d1e966a8455897002f7ab108877564af28947.tar.gz gentoo-c03d1e966a8455897002f7ab108877564af28947.tar.bz2 gentoo-c03d1e966a8455897002f7ab108877564af28947.zip |
dev-games/aseprite: version bump to 1.1.7.
Added bundled allegro library support for resizing feature.
Gentoo-Bug: https://bugs.gentoo.org/588832
Package-Manager: portage-2.2.28
Closes: https://github.com/gentoo/gentoo/pull/2142
Signed-off-by: Patrice Clement <monsieurp@gentoo.org>
Diffstat (limited to 'dev-games/aseprite/files')
-rw-r--r-- | dev-games/aseprite/files/aseprite-1.1.7_type-punned_pointer.patch | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/dev-games/aseprite/files/aseprite-1.1.7_type-punned_pointer.patch b/dev-games/aseprite/files/aseprite-1.1.7_type-punned_pointer.patch new file mode 100644 index 000000000000..ca0921437fc8 --- /dev/null +++ b/dev-games/aseprite/files/aseprite-1.1.7_type-punned_pointer.patch @@ -0,0 +1,28 @@ +diff --git a/src/allegro/src/x/xkeyboard.c b/src/allegro/src/x/xkeyboard.c +index f121e62..86fa4f7 100644 +--- a/src/allegro/src/x/xkeyboard.c ++++ b/src/allegro/src/x/xkeyboard.c +@@ -356,6 +356,14 @@ static int find_unknown_key_assignment (int i) + return _xwin.keycode_to_scancode[i]; + } + ++/* unicode_getc: ++ * Reads a character from a Unicode string. ++ */ ++static int unicode_getc(AL_CONST char *s) ++{ ++ return *((unsigned short *)s); ++} ++ + + + /* _xwin_keyboard_handler: +@@ -412,7 +420,7 @@ void _xwin_keyboard_handler(XKeyEvent *event, int dga2_hack) + } + buffer[len] = '\0'; + uconvert(buffer, U_UTF8, buffer2, U_UNICODE, sizeof buffer2); +- unicode = *(unsigned short *)buffer2; ++ unicode = unicode_getc(buffer2); + + #ifdef ALLEGRO_XWINDOWS_WITH_XIM + r = XFilterEvent((XEvent *)event, _xwin.window); |