# To subscribers of the xforms list from John Levon <moz@compsoc.man.ac.uk> :
On Wed, Apr 09, 2003 at 07:15:52PM +0100, John Levon wrote:
> > Well, if you're quoting bits of my attempt to be helpful back at me, I'll
> > quote bits of your original mail back at you: "Want a patch angus ?"
> >
> > To which I replied, yes please.
I didn't say I'd test it ;)
I don't understand why the ifdef was there, it seems for something
completely unrelated ??
regards
john
Index: lib/pixmap.c
===================================================================
RCS file: /cvsroot/xforms/xforms/lib/pixmap.c,v
retrieving revision 1.1
diff -u -p -r1.1 pixmap.c
--- lib/pixmap.c 6 Apr 2003 15:52:40 -0000 1.1
+++ lib/pixmap.c 9 Apr 2003 19:08:11 -0000
@@ -249,17 +249,19 @@ init_xpm_attributes(Window win, XpmAttri
xpma->valuemask |= XpmReturnPixels;
#endif
-#ifdef USE_OVERRIDE
{
- static XpmColorSymbol xpcm;
- xpcm.name = "None";
- xpcm.value = 0;
- xpcm.pixel = fl_get_flcolor(tran);
+ static XpmColorSymbol xpcm[2];
+ xpcm[0].name = "None";
+ xpcm[0].value = 0;
+ xpcm[0].pixel = fl_get_flcolor(tran);
+ xpcm[1].name = "opaque";
+ xpcm[1].value = 0;
+ xpcm[1].pixel = fl_get_flcolor(FL_BLACK);
+
xpma->valuemask |= XpmColorSymbols;
- xpma->colorsymbols = &xpcm;
- xpma->numsymbols = 1;
+ xpma->colorsymbols = xpcm;
+ xpma->numsymbols = 2;
}
-#endif
}
_________________________________________________
To unsubscribe, send the message "unsubscribe" to
xforms-request@bob.usuhs.mil or see
http://bob.usuhs.mil/mailserv/xforms.html
XForms Home Page: http://world.std.com/~xforms
List Archive: http://bob.usuhs.mil/mailserv/list-archives/
Development: http://savannah.nongnu.org/files/?group=xforms
This archive was generated by hypermail 2b29 : Wed Apr 09 2003 - 15:10:17 EDT