Hi all

I was wondering if my initialisations was ok.
Here is the smallest Xlib init I can have (open a window and create an 
ximage).

Has anyone smaller ?

  display = XOpenDisplay (NULL);
  root_window = DefaultRootWindow (display);
  window = XCreateWindow (display, root_window, 10,  10, 320, 200, 0, 16, 1, 
visual, 0,  0);
  XMapRaised (display, window);
  XFlush (display);
  ximage = XCreateImage (display, CopyFromParent, depth, ZPixmap, 0, NULL, 
320, 200, 32, 320 * 2);



-- 
Jean-Yves Lamoureux
Software Developper
-------------------
As you see I'm working :
    Lines                    File
    640 /prive/alambik/video/video.c
_______________________________________________
Xpert mailing list
[EMAIL PROTECTED]
http://XFree86.Org/mailman/listinfo/xpert

Reply via email to