On Thu, Sep 20, 2001 at 02:28:24PM +0100, Angus Leeming wrote: > This patch works like a charm with the (old) figinset. When testing > the graphics inset, however, I find that colour "None" in an XPM file > is displayed as black. I have no idea why. This appears to be true of > some other graphics viewers also. E.g., KDE 2's pixie displays "None" > as black but the venerable xv works fine. It's because we need to do the equivalent of : xpm_col.name = NULL; xpm_col.value = "none"; xpm_col.pixel = backgroundcolor; xpm_attr.valuemask = XpmColorSymbols; xpm_attr.numsymbols = 1; xpm_attr.colorsymbols = &xpm_col; XpmCreatePixmapFromData(display, RootWindow(display,screen), nofill_xpm, &nofill, &dummy, &xpm_attr); to replace the none pixel with our background colour. Xpm is pretty stupid. regards john
- Re: CVS Update: lyx-devel Angus Leeming
- Re: CVS Update: lyx-devel Angus Leeming
- Re: CVS Update: lyx-devel Angus Leeming
- Re: CVS Update: lyx-devel Michael Schmitt
- Re: CVS Update: lyx-devel John Levon
- Re: CVS Update: lyx-devel Andre Poenitz
- Re: CVS Update: lyx-devel John Levon
- Re: CVS Update: lyx-devel Michael Schmitt
- Re: CVS Update: lyx-devel John Levon
- Re: CVS Update: lyx-devel Angus Leeming
- Re: CVS Update: lyx-devel John Levon
- Re: CVS Update: lyx-devel Angus Leeming
- Re: CVS Update: lyx-devel John Levon
- Re: CVS Update: lyx-devel Angus Leeming
- Re: CVS Update: lyx-devel Angus Leeming
- Re: CVS Update: lyx-devel Angus Leeming
- Re: CVS Update: lyx-devel Dekel Tsur
- Re: CVS Update: lyx-devel Angus Leeming
- Re: CVS Update: lyx-devel Angus Leeming
- Re: CVS Update: lyx-devel Juergen Vigna
- Re: CVS Update: lyx-devel Andre Poenitz