+ XFreeGC(fl_get_display(), gc_copy);
+}
+
+
+void LyXScreen::setCursorColor()
+{
+ if (!lyxColorHandler.get()) return;
+
+ GC gc = lyxColorHandler->getGCForeground(LColor::cursor);
+
+ XGCValues val;
+ XGetGCValues(fl_get_display(),
+ gc, GCForeground, &val);
+ XChangeGC(fl_get_display(), gc_copy, GCForeground, &val);
+}
+
+
+void LyXScreen::redraw(LyXText * text, BufferView * bv)
+{
+ drawFromTo(text, bv, 0, owner.height(), 0, 0, text == bv->text);