Subject: Re: FVWM: Fvwm PixmapButton Patch

From: まつしたまこと <[email-masked]>
Date: Sat, 02 Mar 1996 23:36:56 +0900

veliaa> It is a patch to allow one to put a pixmap file on an Fvwm
veliaa> button.

My friend mentioned to me that there is a bug(?) in locating
pixmap. Here is a patch to fix. I made this patch of course but
debugging is done by my friends, so I don't know what is fixed :-)

--- borders.c.dist	Sat Mar  2 23:28:04 1996
+++ borders.c	Sat Mar  2 23:30:10 1996
@@ -215,7 +215,7 @@
 	    XSetClipMask(dpy, Scr.ButtonMaskGC, pbf.mask);
 	    /* draw the new button face */
 	    XCopyArea(dpy, pbf.face, t->left_w[i], Scr.ButtonMaskGC,
-		      0, 0, pbf.w, pbf.h, x, y);
+		      1, 1, pbf.w, pbf.h, x, y);
 	    break;
 #endif	    
 #endif	    
@@ -289,7 +289,7 @@
 	    XSetClipMask(dpy, Scr.ButtonMaskGC, pbf.mask);
 	    /* draw the new button face */
 	    XCopyArea(dpy, pbf.face, t->right_w[i], Scr.ButtonMaskGC,
-		      0, 0, pbf.w, pbf.h, x, y);
+		      1, 1, pbf.w, pbf.h, x, y);
 	    break;
 #endif	    
 #endif

- -
Makoto `MAR_kun' MATSUSHITA
--
Visit the official FVWM web page at <URL:http://www.hpc.uh.edu/fvwm/>.
To unsubscribe from the list, send "unsubscribe fvwm" in the body of a
message to [email-masked].
To report problems, send mail to [email-masked].