1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-01 22:05:08 +00:00
freebsd-ports/games/xteddy/files/patch-ac
Guy Helmer 71e9bb8f1e A fuzzy teddy bear for your X desktop.
PR:		ports/6850
Submitted by:	Eckart "Isegrim" Hofmann <Isegrim@Wunder-Nett.org>
1998-06-30 13:16:15 +00:00

38 lines
767 B
Plaintext

--- 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);