]> git.lyx.org Git - lyx.git/blobdiff - src/frontends/screen.C
* disable loading of xpm files by the xforms image loader.
[lyx.git] / src / frontends / screen.C
index c3c3affcc33f5764fa17156c7b563e68052e5130..cac90a4c7a1f7f16f6a54db868fac332f855fb62 100644 (file)
@@ -3,7 +3,7 @@
  * This file is part of LyX, the document processor.
  * Licence details can be found in the file COPYING.
  *
- * \author John Levon 
+ * \author John Levon
  *
  * Full author contact details are available in file CREDITS
  *
@@ -86,7 +86,7 @@ SplashScreen::SplashScreen()
        if (!lyxrc.show_banner)
                return;
 
-       string const file = LibFileSearch("images", "banner", "xpm");
+       string const file = LibFileSearch("images", "banner", "ppm");
        if (file.empty())
                return;
 
@@ -171,6 +171,7 @@ bool LyXScreen::fitManualCursor(BufferView * bv, LyXText * text,
                text->first_y = newtop;
                return true;
        }
+
        return false;
 }
 
@@ -230,8 +231,10 @@ bool LyXScreen::fitCursor(LyXText * text, BufferView * bv)
        // Is a change necessary?
        int const newtop = topCursorVisible(text->cursor, text->first_y);
        bool const result = (newtop != text->first_y);
-       if (result)
+       if (result) {
                draw(text, bv, newtop);
+       }
+
        return result;
 }
 
@@ -406,7 +409,7 @@ void LyXScreen::drawFromTo(LyXText * text, BufferView * bv,
        int y1, int y2, int yo, int xo,
        bool internal)
 {
-       lyxerr[Debug::GUI] << "screen: drawFromTo " << y1 << "-" << y2 << endl;
+       lyxerr[Debug::GUI] << "screen: drawFromTo " << y1 << '-' << y2 << endl;
 
        int y_text = text->first_y + y1;