Port build now with both gcc 2.95.4 and 3.3.1. It also respects CFLAGS, which it didn't before. PR: ports/55733 Submitted by: Simon Barner <barner@in.tum.de>
25 lines
1 KiB
C++
25 lines
1 KiB
C++
--- 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),
|