-#else
- if (text->status == LyXText::NEED_MORE_REFRESH
- || screen_refresh_y > -1 ) {
- long y = 0;
- if (screen_refresh_y > -1
- && screen_refresh_y < text->refresh_y)
- y = screen_refresh_y;
- else
- y = text->refresh_y;
-
- //if (y < first) y = first;
- y = max(y, long(first));
-
- DrawFromTo(y - first, owner.height());
- text->refresh_y = 0;
- text->status = LyXText::UNCHANGED;
- screen_refresh_y = -1;
- expose(0, y - first,
- owner.workWidth(), owner.height() - (y - first));
- } else if (text->status == LyXText::NEED_VERY_LITTLE_REFRESH) {
- /* ok I will update the current cursor row */
- long y = text->refresh_y;
- DrawOneRow(text->refresh_row, y);
- text->status = LyXText::UNCHANGED;
- expose(0, text->refresh_y - first,
- owner.workWidth(), text->refresh_row->height);
- }
-#endif
-}
-
-
-#if 0
-void LyXScreen::SmallUpdate()
-{
-#if 1
- Update();
-#else
- if (text->status == LyXText::NEED_MORE_REFRESH) {
- /* ok I will update till the current cursor row */
- Row * row = text->refresh_row;
- long y = text->refresh_y;
- long y2 = y;
-
- if (y > long(text->cursor.y)) {
- Update();
- return;
- }
-
- while (row
- && row != text->cursor.row
- && y < long(first + owner.height())) {
- DrawOneRow(row, y);
- row = row->next;
- }
-
- DrawOneRow(row, y);
- screen_refresh_y = y;
- screen_refresh_row = row->next;
- text->status = LyXText::UNCHANGED;
- // Is the right regin exposed?
- expose(0, y2 - first,
- owner.workWidth(), y - y2);
- } else if (text->status == LyXText::NEED_VERY_LITTLE_REFRESH) {
- /* ok I will update the current cursor row */
- long y = text->refresh_y;
- DrawOneRow(text->refresh_row, y);
- text->status = LyXText::UNCHANGED;
- expose(0, text->refresh_y - first,
- owner.workWidth(), text->refresh_row->height);
- }
-#endif