* \author Alejandro Aguilar Sierra
*
* Full author contact details are available in file CREDITS
- *
- * Implementation of the XForms object bmtable.
- *
- * A bitmap table uses a single bitmap to simulate a 2d array
- * of bitmap buttons. It can be used to build bitmap menus.
*/
#include <config.h>
-#ifdef __GNUG__
-#pragma implementation
-#endif
-
#include <stdlib.h>
#include "bmtable.h"
-#include XPM_H_LOCATION
+#include "lyx_xpm.h"
#if defined(__cplusplus)
extern "C"
if (sp) {
Pixmap dummy_shapemask = 0;
XpmAttributes dumb_attributes = { 0 };
+ XpmColorSymbol xpm_col;
sp->nx = nx;
sp->ny = ny;
sp->bx = FL_abs(ob->bw);
sp->maxi = sp->nx * sp->ny;
sp->bdata = 0;
+ 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,