Patch by Mark Podlipec to fix crashes with XFree86's 32BPP visual.

This commit is contained in:
tron 1998-02-15 21:59:12 +00:00
parent d747f7885e
commit c48a4a5005

View file

@ -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;