// Constructor
LyXScreen::LyXScreen(WorkArea & o) //, LyXText * text_ptr)
- : owner(o) //, text(text_ptr)
+ : owner(o), force_clear(true) //, text(text_ptr)
{
// the cursor isnt yet visible
cursor_visible = false;
y += row->height();
row = row->next();
}
-
+ force_clear = false;
+
// maybe we have to clear the screen at the bottom
if ((y < y2) && text->bv_owner) {
owner.getPainter().fillRectangle(0, y,
} while (text->status == LyXText::CHANGED_IN_DRAW);
text->status = st;
}
+ force_clear = false;
}
}
-void LyXScreen::ToggleSelection(LyXText * text, int y_offset, int x_offset,
- bool kill_selection)
+void LyXScreen::ToggleSelection(LyXText * text, bool kill_selection,
+ int y_offset, int x_offset)
{
// only if there is a selection
if (!text->selection) return;