Path: utzoo!utgpu!news-server.csri.toronto.edu!bonnie.concordia.ca!uunet!cis.ohio-state.edu!ucbvax!bloom-beacon!dont-send-mail-to-path-lines From: tomt@maui.coral.COM (Tom Tulinsky) Newsgroups: comp.windows.x Subject: xbiff++ woes Message-ID: <9106041427.AA21161@maui.coral.com> Date: 4 Jun 91 14:27:34 GMT References: Sender: daemon@athena.mit.edu (Mr Background) Organization: The Internet Lines: 54 ) ) > I grabbed xbiff++ off export.lcs.mit.edu & it compiles fine under SunOS ) > 4.1.1 on both sun3 & sun4 architecture. Whenever it matches a face & tries ) > to display the bitmap I have associated with a regular expression, I get: ) > ) > X Error of failed request: BadMatch (invalid parameter attributes) ) > Major opcode of failed request: 62 (X_CopyArea) ) > Minor opcode of failed request: 0 ) > Resource id in failed request: 0x1100009 ) > Serial number of failed request: 50 ) > Current serial number in output stream: 50 ) > ) > and xbiff++ dies. ) ) It's because xbiff++ appears to have only been tested on a monochrome system. ) I think I simply changed the XCopyArea to an XCopyPlane and it worked. ) ) -- ) (I kid you not)Tom LaStrange toml@Solbourne.COM ) ) Right. Just remember you also have to add a planemask at the end of XCopyPlane's arg list, which should be '1'. SSMailbox.c: { x = (((int)w->core.width) - im->width) / 2; y = (((int)w->core.height) - im->height) / 2; } XSetWindowBackground (dpy, win, back); XClearWindow (dpy, win); /*** doesn't work on multiplane systems! */ /*** XCopyArea (dpy, im->pixmap, win, gc, 0, 0, im->width, im->height, x, y); */ XCopyPlane (dpy, im->pixmap, win, gc, 0, 0, im->width, im->height, x, y, 1); #ifdef SHAPE /* * XXX - temporary hack; walk up widget tree to find top most parent (which Coral * ** Tom Tulinsky 508 460-6010 * ** Coral Network Corporation fax 508 481-6258 * ** 734 Forest St net: tomt@coral.com *** Marlboro, MA 01752 ** U S A ********* Overheard in a BART station: NETWORKS "I was the only NORM there!"