Re: [gtk-list] Re: Adding support for 4 bit color
- From: Walt Pohl <pohl math washington edu>
- To: gtk-list redhat com
- Subject: Re: [gtk-list] Re: Adding support for 4 bit color
- Date: Fri, 10 Jul 1998 18:43:17 -0700 (PDT)
On Thu, 9 Jul 1998, Shawn T. Amundson wrote:
> The list of possible types isn't related to the depths directly,
> and as far as I can tell this is just gotton from the Xserver, which
> makes the patch to gdk extremely trivial.
It uses the list of possible types to decide what's the "best" visual
type. So for 8 bits, if it can, it uses PseudoColor, and for
more than 8 bits it uses DirectColor (or TrueColor, I forget). So as it
stands, for 4 bits, it'll return DirectColor as the "best" visual type. I
think that it should return PseudoColor for anything below 8 bits, while
Owen Taylor thinks it should be StaticColor. It could be that no X server
tries to use DirectColor for 4 bits (a 1x1x1 color cube?), so maybe it
doesn't matter.
About the depths question: how many depths should it allow? I guess 32
would be the safest. :-)
Walt
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]