summaryrefslogtreecommitdiff
path: root/games/xteddy/files/patch-ac
blob: 715282d49b69639cc1952386df4cba1923755575 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
--- xteddy.c.orig	Mon Jan 31 20:12:15 1994
+++ xteddy.c	Wed Jun  3 17:09:27 1998
@@ -19,7 +19,7 @@
 #include <X11/cursorfont.h>
 
 #ifndef NOXPM
-#include <xpm.h>
+#include <X11/xpm.h>
 #endif
 
 #include <stdio.h>
@@ -33,6 +33,14 @@
 #include "xteddy_color.xpm"
 #endif
 
+#ifndef TRUE
+#define TRUE 1
+#endif /* TRUE */
+
+#ifndef FALSE
+#define FALSE 0
+#endif /* FALSE */
+
 #include "patchlevel.h"
 
 static char *progname;
@@ -335,8 +343,8 @@
 	  break;
 	case KeyPress:
 	  /* Exit on "q" or "Q" */
-	  charcount = XLookupString(&report, buffer, bufsize,
-				    &keysym, &compose);
+	  charcount = XLookupString(&report.xkey, 
+				    buffer, bufsize, &keysym, &compose);
 	  if((keysym == XK_Q) || (keysym == XK_q))
 	    {
 	      XCloseDisplay(display);