/**
* \file screen.C
- * Copyright 2002 the LyX Team
- * Read the file COPYING
+ * This file is part of LyX, the document processor.
+ * Licence details can be found in the file COPYING.
*
- * \author John Levon <moz@compsoc.man.ac.uk>
+ * \author John Levon
+ *
+ * Full author contact details are available in file CREDITS
*
* Splash screen code added by Angus Leeming
*/
-#ifdef __GNUG__
-#pragma implementation
-#endif
#include <config.h>
if (!lyxrc.show_banner)
return;
- string const file = LibFileSearch("images", "banner", "xpm");
+ string const file = LibFileSearch("images", "banner", "ppm");
if (file.empty())
return;
text->first_y = newtop;
return true;
}
+
return false;
}
// 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;
}
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;
force_clear_ = false;
// maybe we have to clear the screen at the bottom
- if ((y < y2) && text->bv_owner) {
+ if ((y < y2) && text->isTopLevel()) {
workarea().getPainter().fillRectangle(0, y,
workarea().workWidth(), y2 - y,
LColor::bottomarea);