diff options
author | tron <tron> | 1998-07-27 21:04:04 +0000 |
---|---|---|
committer | tron <tron> | 1998-07-27 21:04:04 +0000 |
commit | 2e5fb46db09ab0605880fe47fe4b9be5bf067366 (patch) | |
tree | 7f171110d94c44d9c3715385eecefa34aeab0b9e /games | |
parent | a9ec2c55156a0756bb986958b922f5713b36bc19 (diff) | |
download | pkgsrc-2e5fb46db09ab0605880fe47fe4b9be5bf067366.tar.gz |
Fix game to work on 16BPP X11 displays.
Diffstat (limited to 'games')
-rw-r--r-- | games/cbzone/patches/patch-ac | 17 | ||||
-rw-r--r-- | games/cbzone/pkg/MESSAGE | 1 |
2 files changed, 17 insertions, 1 deletions
diff --git a/games/cbzone/patches/patch-ac b/games/cbzone/patches/patch-ac new file mode 100644 index 00000000000..42bf1fc26b2 --- /dev/null +++ b/games/cbzone/patches/patch-ac @@ -0,0 +1,17 @@ +--- c_gpr.c.orig Wed Jul 29 12:05:16 1992 ++++ c_gpr.c Mon Jul 27 22:29:01 1998 +@@ -300,12 +300,12 @@ + + pallocated = 0; + if (!success) { +- XFreeColors(d, cmap, pixels, dallocated, 0); ++ if (pixels) XFreeColors(d, cmap, pixels, dallocated, 0); + if (!opt->defaultcolormap) { + cmap = XCreateColormap(d, root, visual, AllocNone); + pallocated = writecolormap(&success); + if (!success) { +- XFreeColors(d, cmap, pixels, pallocated, 0); ++ if (pixels) XFreeColors(d, cmap, pixels, pallocated, 0); + XFreeColormap(d, cmap); + } + } diff --git a/games/cbzone/pkg/MESSAGE b/games/cbzone/pkg/MESSAGE deleted file mode 100644 index 8c6472acc36..00000000000 --- a/games/cbzone/pkg/MESSAGE +++ /dev/null @@ -1 +0,0 @@ -This game will not work on a display using 16 bits per pixel. |