grantham@super.ORG (Jon Grantham) (06/01/91)
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. or something similar. Not being an X guru (just someone who figured out how to type "xmkmf" & "make install" (well, a little bit more...), I'm stumped. Can someone tell me what the heck my problem is? This happens with both sun3 & sun4 versions. Sounds work fine, though. Thanks. Jon -- JFG@ub.cc.umich.edu grantham@metropolis.super.org uunet!super!grantham "My only response is a non-response."
toml@marvin.Solbourne.COM (Tom LaStrange) (06/01/91)
> 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
tomt@maui.coral.COM (Tom Tulinsky) (06/04/91)
)
) > 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!"