From cf17f68c6fd466f0b63fd8613656e73029827865 Mon Sep 17 00:00:00 2001 From: John Levon Date: Sat, 29 Mar 2003 16:43:22 +0000 Subject: [PATCH] handle transparent pixels git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@6633 a592a061-630c-0410-9148-cb99ea01b6c8 --- src/frontends/xforms/ChangeLog | 4 ++++ src/frontends/xforms/bmtable.c | 8 +++++++- 2 files changed, 11 insertions(+), 1 deletion(-) diff --git a/src/frontends/xforms/ChangeLog b/src/frontends/xforms/ChangeLog index 14eed10578..d116238a70 100644 --- a/src/frontends/xforms/ChangeLog +++ b/src/frontends/xforms/ChangeLog @@ -1,3 +1,7 @@ +2003-03-29 John Levon + + * bmtable.c: handle transparent pixels + 2003-03-29 John Levon * input_validators.C: remove dead code diff --git a/src/frontends/xforms/bmtable.c b/src/frontends/xforms/bmtable.c index 1454b0a195..ae7fd86483 100644 --- a/src/frontends/xforms/bmtable.c +++ b/src/frontends/xforms/bmtable.c @@ -330,9 +330,15 @@ void fl_set_bmtable_pixmap_file(FL_OBJECT *ob, int nx, int ny, char const *filen sp->maxi = sp->nx * sp->ny; sp->bdata = 0; + XpmColorSymbol xpm_col; + xpm_col.name = NULL; + xpm_col.value = "None"; + xpm_col.pixel = fl_get_flcolor(ob->col1); dumb_attributes.colormap = fl_state[fl_get_vclass()].colormap; + dumb_attributes.numsymbols = 1; + dumb_attributes.colorsymbols = &xpm_col; dumb_attributes.closeness = 30000; - dumb_attributes.valuemask = XpmColormap | XpmCloseness; + dumb_attributes.valuemask = XpmColormap | XpmCloseness | XpmColorSymbols; if (XReadPixmapFile(fl_get_display(), fl_winget(), (char *)filename, &(sp->pix), &dummy_shapemask,