[prev in list] [next in list] [prev in thread] [next in thread] 

List:       gtk
Subject:    Re: Rendering GdkRGB to a 1-bpp pixmap (display)
From:       Peter Finderup Lund <firefly () diku ! dk>
Date:       2003-01-29 1:45:10
[Download RAW message or body]

On 28 Jan 2003, Michael L Torrie wrote:

> Is asking the X server which color is which a good idea or should I
> force the color map to be a certain way?  Obviously non-X platforms

Ask the X server (you can't always change the color map).

X has functions for that:

# man BlackPixel
...
       BlackPixel(display, screen_number)

       WhitePixel(display, screen_number)
...
       The BlackPixel macro returns the black pixel value for the specified screen.

       The WhitePixel macro returns the white pixel value for the specified screen.
...

-Peter

``Average programmers should be rounded up and placed in internment camps
to keep them away from keyboards.''

_______________________________________________
gtk-list mailing list
gtk-list@gnome.org
http://mail.gnome.org/mailman/listinfo/gtk-list
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic