freebsd-ports/games/xmille/files/patch-drawcard.c
Martin Wilke 300d2b5267 - Fix build with gcc 4.2
- Unbreak

PR:		113773
Submitted by:	KATO Tsuguru <tkato432@yahoo.com>
2007-06-20 14:11:09 +00:00

44 lines
937 B
C

--- drawcard.c.orig Thu Apr 2 05:55:06 1992
+++ drawcard.c Fri Jun 15 02:09:15 2007
@@ -8,6 +8,8 @@
# include "ui.h"
# include "card.h"
# include "background.h"
+# include <stdlib.h>
+
struct card_init {
char *bits;
@@ -64,6 +66,9 @@
struct card backside;
struct card eraseCard;
+static drawIm();
+static redisplaybelow();
+
bw_init_cards()
{
@@ -183,12 +188,12 @@
WIDTH, HEIGHT);
XSetForeground(dpy, cheap_gc, bits_p);
- XSetStipple(dpy, cheap_gc, bits);
+ XSetStipple(dpy, cheap_gc, mask);
XFillRectangle (dpy, cards[i].bits, cheap_gc, 0, 0,
WIDTH, HEIGHT);
XSetForeground(dpy, cheap_gc, mask_p);
- XSetStipple(dpy, cheap_gc, mask);
+ XSetStipple(dpy, cheap_gc, bits);
XFillRectangle (dpy, cards[i].bits, cheap_gc, 0, 0,
WIDTH, HEIGHT);
@@ -262,7 +267,6 @@
struct card *c;
{
struct displayed *d, *p;
- char *malloc ();
p = 0;
for (d = onscreen; d; d = d->next) {