openbsd-ports/games/xchomp/patches/patch-demo_c

13 lines
547 B
Plaintext
Raw Normal View History

2007-10-26 17:19:16 -04:00
$OpenBSD: patch-demo_c,v 1.1 2007/10/26 21:19:16 ajacoutot Exp $
--- demo.c.orig Fri Mar 18 06:12:23 1994
2007-10-26 17:19:16 -04:00
+++ demo.c Fri Oct 26 23:02:48 2007
@@ -127,7 +127,7 @@ demo_seq()
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();
2007-10-26 17:19:16 -04:00
XFillRectangle(display, window, clearGC, 0, 0, WIN_WIDTH,