Files
ports/games/xpipeman/files/patch-graphics.c
T
Christian Weisgerber b3bf4f319f Properly fix the LP64 issue in the application resource handling rather
than praying that globals end up in the lower 32-bit address space.

Add a number of missing includes, missing prototypes, etc.
2015-09-19 20:04:52 +00:00

23 lines
653 B
C

--- graphics.c.orig 1991-09-13 20:32:11 UTC
+++ graphics.c
@@ -63,8 +63,8 @@ init_pixmaps(top_shell)
/*- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -*/
- fgcolor.pixel = fg;
- bgcolor.pixel = bg;
+ fgcolor.pixel = app_data.fg;
+ bgcolor.pixel = app_data.bg;
fgcolor.flags = DoRed | DoGreen | DoBlue;
bgcolor.flags = DoRed | DoGreen | DoBlue;
XQueryColor(display,DefaultColormapOfScreen(XtScreen(playfield_widget)), &fgcolor);
@@ -444,7 +444,7 @@ void free_pixmaps()
{
int i;
- for(i=0;i++;i<NUM_TMP_CURSOR_PIXMAPS)
+ for(i=0;i<NUM_TMP_CURSOR_PIXMAPS;i++)
XFreePixmap(display,tmp_pixmap[i]);
}