#include "Painter.h"
#include "WorkArea.h"
#include "buffer.h"
+#include "BufferView.h"
#include "font.h"
#include "insets/insettext.h"
#include "ColorHandler.h"
}
+LyXScreen::~LyXScreen()
+{
+ XFreeGC(fl_get_display(), gc_copy);
+}
+
+
void LyXScreen::setCursorColor()
{
if (!lyxColorHandler.get()) return;
int y_text = text->first + y1;
// get the first needed row
- Row * row = text->GetRowNearY(y_text);
+ Row * row = text->getRowNearY(y_text);
// y_text is now the real beginning of the row
int y = y_text - text->first;
LyXText::text_status st = bv->text->status;
do {
bv->text->status = st;
- text->GetVisibleRow(bv, y + y_offset,
+ text->getVisibleRow(bv, y + y_offset,
x_offset, row, y + text->first);
} while (bv->text->status == LyXText::CHANGED_IN_DRAW);
bv->text->status = st;
LyXText::text_status st = bv->text->status;
do {
bv->text->status = st;
- text->GetVisibleRow(bv, y, x_offset, row,
+ text->getVisibleRow(bv, y, x_offset, row,
y + text->first);
} while (bv->text->status == LyXText::CHANGED_IN_DRAW);
bv->text->status = st;