summaryrefslogtreecommitdiff
path: root/games/CaribbeanStud/files/patch-Seat.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'games/CaribbeanStud/files/patch-Seat.cpp')
-rw-r--r--games/CaribbeanStud/files/patch-Seat.cpp25
1 files changed, 25 insertions, 0 deletions
diff --git a/games/CaribbeanStud/files/patch-Seat.cpp b/games/CaribbeanStud/files/patch-Seat.cpp
new file mode 100644
index 000000000000..f8aeb85740fd
--- /dev/null
+++ b/games/CaribbeanStud/files/patch-Seat.cpp
@@ -0,0 +1,25 @@
+--- Seat.cpp.orig Fri Jan 31 23:47:58 1997
++++ Seat.cpp Tue Aug 19 12:13:30 2003
+@@ -151,10 +151,10 @@
+ gcv.font = XLoadFont(_dpy, "10x20");
+ gcflags = GCForeground | GCBackground | GCGraphicsExposures;
+ _redgc = XCreateGC(_dpy, RootWindow(_dpy, _screen), gcflags, &gcv);
++ // allocate drawing area background color, set areas
++ XAllocNamedColor(_dpy, cmap, "Forest Green", &color, &color);
+
+ }
+- // allocate drawing area background color, set areas
+- XAllocNamedColor(_dpy, cmap, "Forest Green", &color, &color);
+ i = 0;
+ XtSetArg(args[i], XmNbackground, color.pixel); i++;
+ XtSetArg(args[i], XmNforeground, whitepixel); i++;
+@@ -342,7 +342,8 @@
+ Card ** cards = hands->Cards();
+ if( hands->NumOfCards() )
+ {
+- for(int i=0; i< hands->NumOfCards() -1; i++)
++ int i;
++ for(i=0; i< hands->NumOfCards() -1; i++)
+ DrawCardBack(GetWindow(), cards[i], PositionCardX(cards[i],i),
+ PositionCardY(cards[i],i));
+ DrawCard(GetWindow(), cards[i], PositionCardX(cards[i],i),