thx for your explanation.<br><br>flo<br><br><div><span class="gmail_quote">2007/12/18, Glynn Clements <<a href="mailto:glynn@gclements.plus.com">glynn@gclements.plus.com</a>>:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<br>Florian Harmuth wrote:<br><br>> i have a little problem regarding colormaps. After a call of XCreateImage /<br>> XShmCreateImage i get under my via cpu (savage gpu) for image->red_mask a<br>> value of 0xf800. Under my Geode cpu i get 0x0 for all color masks. My
<br>> problem is that i should use xrfbviewer where the color choose is<br>> implemented with a dependecy on this color values (XFramebuffer.cc).<br>> I have attached my Xorg.log file where one line says it uses PseudoColors.
<br>> Is that my problem?<br><br>Yes. The colour masks are only meaningful for TrueColor and DirectColor<br>visuals.<br><br>> Any suggestions?<br><br>Well, you can tell the X server to use a TrueColor visual with "-cc 4",
<br>but you'll also need to increase the display depth above 8bpp (with<br>e.g. "-depth 16") to get decent quality.<br><br>The only other solution is to re-write the code to support other visual<br>types.<br>
<br>Even then, there are so many applications which take a true-colour<br>display for granted that this particular application is likely to be<br>the least of your problems. It isn't just code which is the problem,<br>
but also graphics (icons, splash screens etc) which can consume the<br>entire colourmap.<br><br>--<br>Glynn Clements <<a href="mailto:glynn@gclements.plus.com">glynn@gclements.plus.com</a>><br></blockquote></div><br>