[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
BadMatch when running on IRIX display
Hi,
Anyone still getting the BadMatch error on IRIX displays??
A patch is attached, please tell me the output (it will write a couple
lines to console).
--
Peter. <zed@linuxpower.org>
--- xtext.c Mon Aug 21 13:35:35 2000
+++ xtext.c Mon Aug 21 13:34:05 2000
@@ -2690,6 +2690,19 @@
xtext->img, 0, 0, 0, 0, width + MARGIN, height, False);
gtk_xtext_kill_buffer (xtext);
#else
+
+{
+ Window rootret;
+ int xret, yret, wret, hret, bret, dret;
+ XGetGeometry (xtext->display, xtext->tmp_pix, &rootret, &xret, &yret,
+ &wret, &hret, &bret, &dret);
+ printf("tmp_pix depth is %d\n", dret);
+ XGetGeometry (xtext->display, xtext->drawable, &rootret, &xret, &yret,
+ &wret, &hret, &bret, &dret);
+ printf("drawable depth is %d\n", dret);
+ printf("xtext->depth = %d\n", xtext->depth);
+}
+
XCopyArea (xtext->display, xtext->tmp_pix, xtext->drawable, xtext->xfgc,
0, 0, width + MARGIN, height, 0, 0);
XFreePixmap (xtext->display, xtext->tmp_pix);