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,