Xref: utzoo comp.windows.x:35262 comp.graphics:17226 Newsgroups: comp.windows.x,comp.graphics Path: utzoo!utgpu!news-server.csri.toronto.edu!rpi!uupsi!pixar!markv From: markv@pixar.com (Mark VandeWettering) Subject: Wanted: Example code using DirectColor 24 bit Visual Message-ID: <1991Apr10.190204.20085@pixar.com> Originator: markv@woody Sender: news@pixar.com (Usenet Newsmaster) Nntp-Posting-Host: woody Organization: Pixar -- Point Richmond, California Date: Wed, 10 Apr 1991 19:02:04 GMT I am having trouble with a current project that requires the use of a 24 bit directcolor visual under X windows. Everytime I do a XCreateWindow, I get a XBadMatch error, which I cannot figure out the cause of. (gosh, leave that preposition dangling). The steps I need to do is: 1. Use XMatchVisual to decide if a 24 bit visual is available (it is not my default visual) 2. Use XCreateWindow to create a window. 3. Create an XImage to be used with the window. If anyone has a simple program or program fragment that you know works, then please send it to me. I am also open to any hints on how to proceed, as I am strictly a novice X programmer. If it helps, I have tested this on an HP9000 300 series, which supports X11R3. Thanks in advance. Mark VandeWettering (markv%pixar.uucp@ucbvax.berkeley.edu)