From f09707e76b3fd6c35be118b96d12ffb2815843bfa7a70c9b4c1ff25343afc6d6 Mon Sep 17 00:00:00 2001 From: Philip Taylor Date: Sat, 11 Dec 2010 02:31:52 +0000 Subject: [PATCH] Patch for Debian_5.0 OBS-URL: https://build.opensuse.org/package/show/games/0ad?expand=0&rev=16 --- 0ad-cs8833.patch | 34 +++++++++++++++++++ ...oad_url:0ad-r08832-alpha-unix-build.tar.gz | 3 -- debian.series | 1 + 3 files changed, 35 insertions(+), 3 deletions(-) create mode 100644 0ad-cs8833.patch delete mode 100644 _service:download_url:0ad-r08832-alpha-unix-build.tar.gz create mode 100644 debian.series diff --git a/0ad-cs8833.patch b/0ad-cs8833.patch new file mode 100644 index 0000000..76f7b54 --- /dev/null +++ b/0ad-cs8833.patch @@ -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; diff --git a/_service:download_url:0ad-r08832-alpha-unix-build.tar.gz b/_service:download_url:0ad-r08832-alpha-unix-build.tar.gz deleted file mode 100644 index bf5ca93..0000000 --- a/_service:download_url:0ad-r08832-alpha-unix-build.tar.gz +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:e41f53f08a3423d502ef9d8dbb77c5518bfbc1c6bd5c7312e3ba99aa9c599817 -size 5911327 diff --git a/debian.series b/debian.series new file mode 100644 index 0000000..a08b80d --- /dev/null +++ b/debian.series @@ -0,0 +1 @@ +0ad-cs8833.patch -p0