From 3c696553ac215aba4fe723bd18892d437a713efd Mon Sep 17 00:00:00 2001 From: Alfredo Braunstein Date: Mon, 6 Dec 2004 21:59:23 +0000 Subject: [PATCH] draw incomplete cursors git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@9352 a592a061-630c-0410-9148-cb99ea01b6c8 --- src/frontends/ChangeLog | 8 +++++++- src/frontends/screen.C | 4 ++-- 2 files changed, 9 insertions(+), 3 deletions(-) diff --git a/src/frontends/ChangeLog b/src/frontends/ChangeLog index 4e7a1c8d7f..7ba705facd 100644 --- a/src/frontends/ChangeLog +++ b/src/frontends/ChangeLog @@ -1,6 +1,12 @@ + +2004-12-06 Alfredo Braunstein + + * screen.C (showCursor): draw half cursors + 2004-11-26 Alfredo Braunstein - * Painter.C: adjust * screen.[Ch] (fitCursor): remove, + * Painter.C: adjust + * screen.[Ch] (fitCursor): remove, (showCursor): adjust, (redraw): adjust 2004-11-20 Lars Gullik Bjonnes diff --git a/src/frontends/screen.C b/src/frontends/screen.C index d9b5b7c2be..147d444d88 100644 --- a/src/frontends/screen.C +++ b/src/frontends/screen.C @@ -183,8 +183,8 @@ void LyXScreen::showCursor(BufferView & bv) y -= ascent; //lyxerr << "LyXScreen::showCursor x: " << x << " y: " << y << endl; - // if it doesn't fit entirely on the screen, don't try to show it - if (y < 0 || y + h > workarea().workHeight()) + // if it doesn't touch the screen, don't try to show it + if (y + h < 0 || y >= workarea().workHeight()) return; cursor_visible_ = true;