mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-12-23 05:25:26 +00:00
handle transparent pixels
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@6633 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
parent
cf595a9f14
commit
cf17f68c6f
@ -1,3 +1,7 @@
|
|||||||
|
2003-03-29 John Levon <levon@movementarian.org>
|
||||||
|
|
||||||
|
* bmtable.c: handle transparent pixels
|
||||||
|
|
||||||
2003-03-29 John Levon <levon@movementarian.org>
|
2003-03-29 John Levon <levon@movementarian.org>
|
||||||
|
|
||||||
* input_validators.C: remove dead code
|
* input_validators.C: remove dead code
|
||||||
|
@ -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->maxi = sp->nx * sp->ny;
|
||||||
sp->bdata = 0;
|
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.colormap = fl_state[fl_get_vclass()].colormap;
|
||||||
|
dumb_attributes.numsymbols = 1;
|
||||||
|
dumb_attributes.colorsymbols = &xpm_col;
|
||||||
dumb_attributes.closeness = 30000;
|
dumb_attributes.closeness = 30000;
|
||||||
dumb_attributes.valuemask = XpmColormap | XpmCloseness;
|
dumb_attributes.valuemask = XpmColormap | XpmCloseness | XpmColorSymbols;
|
||||||
|
|
||||||
if (XReadPixmapFile(fl_get_display(), fl_winget(), (char *)filename,
|
if (XReadPixmapFile(fl_get_display(), fl_winget(), (char *)filename,
|
||||||
&(sp->pix), &dummy_shapemask,
|
&(sp->pix), &dummy_shapemask,
|
||||||
|
Loading…
Reference in New Issue
Block a user