diff options
author | tron <tron@pkgsrc.org> | 1998-07-27 21:04:04 +0000 |
---|---|---|
committer | tron <tron@pkgsrc.org> | 1998-07-27 21:04:04 +0000 |
commit | 740012401e84b2f7a348b9b82454b0c6c4cd58e2 (patch) | |
tree | 7f171110d94c44d9c3715385eecefa34aeab0b9e /games/cbzone/patches | |
parent | 0d4ffda91d14958d0532b496fafa004034e9946f (diff) | |
download | pkgsrc-740012401e84b2f7a348b9b82454b0c6c4cd58e2.tar.gz |
Fix game to work on 16BPP X11 displays.
Diffstat (limited to 'games/cbzone/patches')
-rw-r--r-- | games/cbzone/patches/patch-ac | 17 |
1 files changed, 17 insertions, 0 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); + } + } |