XAllocColorCells has failed
Benjamin Herrenschmidt
benh at kernel.crashing.org
Tue Sep 6 14:47:20 PDT 2005
On Tue, 2005-09-06 at 07:29 -0700, Peter J. Bismuti wrote:
> On Saturday 03 September 2005 02:49 pm, Felix Schulte wrote:
>
> It seems that linux does not have a PseudoColor visual of any kind. This is
> news to me.
>
> The SGI's default visual is PseudoColor, so that app was written assuming the
> use of colormaps, but the Linux version chokes on XAllocColorCells because it
> is in 24bit TrueColor mode.
Can you try with the patch :
* programs/Xserver/hw/xfree86/common/xf86cmap.c:
Fix tests for maximum number of colours when creating a colourmap, so a
32-bit visual (e.g. ARGB) doesn't overflow an int when attempting to do
1 << 32. (Benjamin Herrenschmidt)
Revision Changes Path
1.1299 +5 -0 xc/ChangeLog
1.9 +20 -12
xc/programs/Xserver/hw/xfree86/common/xf86cmap.c
That went in a couple of days ago ? There was a bug that could cause
creation of colormaps to fail for 32 bpp visuals.
Ben.
More information about the xorg
mailing list