summaryrefslogtreecommitdiff
path: root/games/xchomp/files/patch-demo.c
diff options
context:
space:
mode:
Diffstat (limited to 'games/xchomp/files/patch-demo.c')
-rw-r--r--games/xchomp/files/patch-demo.c20
1 files changed, 20 insertions, 0 deletions
diff --git a/games/xchomp/files/patch-demo.c b/games/xchomp/files/patch-demo.c
new file mode 100644
index 000000000000..86c948848142
--- /dev/null
+++ b/games/xchomp/files/patch-demo.c
@@ -0,0 +1,20 @@
+--- demo.c.orig
++++ demo.c
+@@ -6,7 +6,7 @@
+ * for the game.
+ */
+
+-demo_seq()
++void demo_seq()
+ {
+ int i, xx, yy, direction, ascent, descent, len;
+ XCharStruct chars;
+@@ -127,7 +127,7 @@
+ if (event.xany.window != window) continue;
+ switch (event.type) {
+ case KeyPress:
+- XLookupString(&event, &c_buf, 1, &last_key, &status);
++ XLookupString((XKeyEvent *) &event, &c_buf, 1, &last_key, &status);
+ if ((last_key == XK_q) || (last_key == XK_Q))
+ do_exit();
+ XFillRectangle(display, window, clearGC, 0, 0, WIN_WIDTH,