]> git.lyx.org Git - lyx.git/blobdiff - src/Painter.C
forgot these
[lyx.git] / src / Painter.C
index a44065ad108181c5c36c598d29c81777851af2b7..db10023d7364aca30ec944696bbdf030dbd78dbb 100644 (file)
@@ -25,7 +25,7 @@
 #include "language.h"
 
 #include "frontends/GUIRunTime.h"
-#include "frontends/support/LyXImage.h"
+#include "graphics/GraphicsImage.h"
 
 #include "support/LAssert.h"
 #include "support/lstrings.h"
@@ -171,11 +171,10 @@ PainterBase & Painter::pixmap(int x, int y, int w, int h, Pixmap bitmap)
 }
 
 
-PainterBase & Painter::image(int x, int y, int w, int h, LyXImage const * image)
+PainterBase & Painter::image(int x, int y, int w, int h,
+                           grfx::GImage const & image)
 {
-       Pixmap bitmap = image->getPixmap();
-
-       return pixmap(x, y, w, h, bitmap);
+       return pixmap(x, y, w, h, image.getPixmap());
 }