Howto create a window with ARGB32-visual?

Eeri Kask Eeri.Kask at mailbox.tu-dresden.de
Fri Sep 24 06:21:07 PDT 2010


On 09/24/2010 02:25 PM, Clemens Eisserer <linuxhippy at gmail.com> wrote:
> My attemp tried to find a 32-bit visual, and pass that to
> XCreateWindow:
>
> XVisualInfo info;
> int cnt;
> XVisualInfo *visInfos = XGetVisualInfo(display, 0, NULL, &cnt);


  info.screen = XDefaultScreen (display);
  info.depth = 32;

  visInfos = XGetVisualInfo (display,
                             VisualScreenMask | VisualDepthMask,
                             &info, &cnt);




More information about the xorg mailing list