Patch for Debian_5.0

OBS-URL: https://build.opensuse.org/package/show/games/0ad?expand=0&rev=16
This commit is contained in:
Philip Taylor 2010-12-11 02:31:52 +00:00 committed by Git OBS Bridge
parent 02f41d4730
commit f09707e76b
3 changed files with 35 additions and 3 deletions

34
0ad-cs8833.patch Normal file
View File

@ -0,0 +1,34 @@
Index: source/ps/KeyName.h
===================================================================
--- source/ps/KeyName.h (revision 8832)
+++ source/ps/KeyName.h (revision 8833)
@@ -34,8 +34,13 @@
MOUSE_MIDDLE = SDLK_LAST + SDL_BUTTON_MIDDLE,
MOUSE_WHEELUP = SDLK_LAST + SDL_BUTTON_WHEELUP,
MOUSE_WHEELDOWN = SDLK_LAST + SDL_BUTTON_WHEELDOWN,
+#if SDL_VERSION_ATLEAST(1, 2, 13)
MOUSE_X1 = SDLK_LAST + SDL_BUTTON_X1,
MOUSE_X2 = SDLK_LAST + SDL_BUTTON_X2,
+#else
+ MOUSE_X1 = SDLK_LAST + SDL_BUTTON_WHEELDOWN + 1,
+ MOUSE_X2 = SDLK_LAST + SDL_BUTTON_WHEELDOWN + 2,
+#endif
// 'Keycodes' for the unified modifier keys
UNIFIED_SHIFT,
Index: source/ps/Hotkey.cpp
===================================================================
--- source/ps/Hotkey.cpp (revision 8832)
+++ source/ps/Hotkey.cpp (revision 8833)
@@ -178,7 +178,11 @@
break;
case SDL_MOUSEBUTTONDOWN:
case SDL_MOUSEBUTTONUP:
+#if SDL_VERSION_ATLEAST(1, 2, 13)
if ((int)ev->ev.button.button <= SDL_BUTTON_X2)
+#else
+ if ((int)ev->ev.button.button <= SDL_BUTTON_WHEELDOWN)
+#endif
{
keycode = SDLK_LAST + (int)ev->ev.button.button;
break;

View File

@ -1,3 +0,0 @@
version https://git-lfs.github.com/spec/v1
oid sha256:e41f53f08a3423d502ef9d8dbb77c5518bfbc1c6bd5c7312e3ba99aa9c599817
size 5911327

1
debian.series Normal file
View File

@ -0,0 +1 @@
0ad-cs8833.patch -p0