]> git.lyx.org Git - lyx.git/blobdiff - src/graphics/ImageLoaderXPM.C
remove more forms.h cruft
[lyx.git] / src / graphics / ImageLoaderXPM.C
index e683fdf54d3e656d0bb95d51432c033e593878c8..b92a0bb0113da7c5cf6f7d91b8bda7b3b90051ee 100644 (file)
@@ -14,9 +14,9 @@
 #include <config.h>
 #include "ImageLoaderXPM.h"
 #include "frontends/support/LyXImage.h"
+#include "frontends/GUIRunTime.h"
 #include "support/filetools.h"
 
-#include FORMS_H_LOCATION
 #include XPM_H_LOCATION
 #include <iostream>
 #include <fstream>
@@ -58,13 +58,13 @@ ImageLoaderXPM::loadableFormats() const
 ImageLoader::Result 
 ImageLoaderXPM::runImageLoader(string const & filename)
 {
-       Display * display = fl_get_display();
+       Display * display = GUIRunTime::x11Display();
 
 //(BE 2000-08-05)
 #ifdef WITH_WARNINGS
 #warning This might be a dirty thing, but I dont know any other solution.
 #endif
-       Screen * screen = ScreenOfDisplay(display, fl_screen);
+       Screen * screen = ScreenOfDisplay(display, GUIRunTime::x11Screen());
 
        Pixmap pixmap;
        Pixmap mask;