Path: utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!cornell!uw-beaver!uw-june!gthomas From: gthomas@uw-june (Greg Thomas) Newsgroups: comp.windows.x Subject: bitmaps and NoExpose events Message-ID: <8788@june.cs.washington.edu> Date: 25 Jul 89 07:53:12 GMT Sender: gthomas@june.cs.washington.edu Reply-To: gthomas@uw-june (Greg Thomas) Organization: U of Washington, Computer Science, Seattle Lines: 22 I'm trying to display a bitmap in a window, using XCopyPlane. The bitmap never becomes visible, and a NoExpose event is generated for each call to XCopyPlane. I'm using X11R3 on a VAXstation 3200 running Ultrix 2.3. Can anyone tell me why this isn't working? Here's the relevant code: #define circle_width 17 #define circle_height 17 static char circle_bits[] = { 0xc0, /* rest ommitted */ }; bitmap = XCreateBitmapFromData(display, window, circle_bits, (unsigned int)circle_width, (unsigned int)circle_height); XCopyPlane(display, bitmap, window, DefaultGC(display, screen), 0, 0, (unsigned int)circle_width, (unsigned int)circle_height, 0, 0, (unsigned long)1); When I create a pixmap (using XCreatePixmapFromBitmapData) from circle_bits, it shows up fine after a call to XCopyArea (although a NoExpose event is still generated). Any help would be greatly appreciated ... greg (Please reply to: gthomas@cs.washington.edu)