summaryrefslogtreecommitdiffstats
path: root/games/xgalaga/files/patch-main.c
diff options
context:
space:
mode:
Diffstat (limited to 'games/xgalaga/files/patch-main.c')
-rw-r--r--games/xgalaga/files/patch-main.c18
1 files changed, 18 insertions, 0 deletions
diff --git a/games/xgalaga/files/patch-main.c b/games/xgalaga/files/patch-main.c
new file mode 100644
index 0000000..dea2bd7
--- /dev/null
+++ b/games/xgalaga/files/patch-main.c
@@ -0,0 +1,18 @@
+--- main.c.orig 2008-03-06 06:58:16.000000000 +0900
++++ main.c 2012-04-23 14:26:03.000000000 +0900
+@@ -836,6 +836,7 @@
+ if(gameOver) {
+ while(W_EventsPending()) {
+ W_NextEvent(&wev);
++ if (wev.key >= 256) wev.key -= 256;
+
+ if(gameOver)
+ mouseControl = 1;
+@@ -922,6 +923,7 @@
+
+ while(W_EventsPending()) {
+ W_NextEvent(&wev);
++ if (wev.key >= 256) wev.key -= 256;
+
+ switch(wev.type) {
+ case W_EV_KEY_OFF:
OpenPOWER on IntegriCloud