#include <config.h>
#include "XPM_Renderer.h"
+#include "frontends/support/LyXImage.h"
#include FORMS_H_LOCATION
#include XPM_H_LOCATION
//(BE 2000-08-05)
#warning This might be a dirty thing, but I dont know any other solution.
- Screen * screen = DefaultScreenOfDisplay(display);
+ Screen * screen = ScreenOfDisplay(display, fl_screen);
int status = XpmReadFileToPixmap(
display,
// This should have been set by the XpmReadFileToPixmap call!
Assert(attrib.valuemask & XpmSize);
- setPixmap(pixmap, attrib.width, attrib.height);
+ setPixmap(new LyXImage(pixmap), attrib.width, attrib.height);
XpmFreeAttributes(&attrib);