summaryrefslogtreecommitdiff
path: root/graphics/xanim
diff options
context:
space:
mode:
authortron <tron>1998-02-15 21:59:12 +0000
committertron <tron>1998-02-15 21:59:12 +0000
commit5b63814532c530223451ae036c32513569588de2 (patch)
tree99a241ef399aad83168a91057764dcc66f7463c8 /graphics/xanim
parent9376686ab16933406b344b94a60739006730cdab (diff)
downloadpkgsrc-5b63814532c530223451ae036c32513569588de2.tar.gz
Patch by Mark Podlipec to fix crashes with XFree86's 32BPP visual.
Diffstat (limited to 'graphics/xanim')
-rw-r--r--graphics/xanim/patches/patch-aa10
1 files changed, 10 insertions, 0 deletions
diff --git a/graphics/xanim/patches/patch-aa b/graphics/xanim/patches/patch-aa
new file mode 100644
index 00000000000..4a939cb36de
--- /dev/null
+++ b/graphics/xanim/patches/patch-aa
@@ -0,0 +1,10 @@
+--- xa_x11.c.orig Sun Jan 26 17:22:05 1997
++++ xa_x11.c Sun Feb 15 21:17:44 1998
+@@ -482,6 +482,7 @@
+ x11_depth = vis[vis_i].depth;
+ x11_class = vis[vis_i].class;
+ x11_cmap_size = vis[vis_i].colormap_size;
++ if (x11_cmap_size > 256) x11_cmap_size = 256;
+ /* POD - For testing purposes only */
+ if ( (pod_max_colors > 0) && (pod_max_colors < x11_cmap_size) )
+ x11_cmap_size = pod_max_colors;