1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-01-26 09:46:09 +00:00
freebsd-ports/games/xchomp/files/patch-demo.c
Martin Wilke 5eee5a30c7 - Update MASTER_SITES
- Fix build with clang
- Add MAKE_JOBS_SAFE

PR:		175572
Submitted by:	Ports Fury
2013-02-04 14:30:02 +00:00

21 lines
585 B
C

--- 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,