From db850186275e298652b8f71db972f27ffadc9174 Mon Sep 17 00:00:00 2001 From: Edouard Dupin Date: Mon, 19 Sep 2011 10:06:18 +0200 Subject: [PATCH] SYS: page up and page down coorection --- Sources/Buffer/BufferText.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Sources/Buffer/BufferText.cpp b/Sources/Buffer/BufferText.cpp index d12f3ca..c45f6db 100644 --- a/Sources/Buffer/BufferText.cpp +++ b/Sources/Buffer/BufferText.cpp @@ -63,7 +63,7 @@ void BufferText::BasicInit(void) m_cursorPos = 0; m_cursorPreferredCol = -1; m_cursorOn = true; - + // set at the sustem buffer internal m_lineWidth = Display::GetFontWidth(); m_lineHeight = Display::GetFontHeight(); } @@ -784,7 +784,7 @@ void BufferText::cursorMove(int32_t gtkKey) case GDK_Page_Up: # endif //EDN_INFO("keyEvent : "); - TextDMoveUp(m_AnchorList[AnchorCurrentId()].m_displaySize.x); + TextDMoveUp(m_AnchorList[AnchorCurrentId()].m_displaySize.y); break; # ifdef USE_GTK_VERSION_3_0 case GDK_KEY_Page_Down: @@ -792,7 +792,7 @@ void BufferText::cursorMove(int32_t gtkKey) case GDK_Page_Down: # endif //EDN_INFO("keyEvent : "); - TextDMoveDown(m_AnchorList[AnchorCurrentId()].m_displaySize.x); + TextDMoveDown(m_AnchorList[AnchorCurrentId()].m_displaySize.y); break; # ifdef USE_GTK_VERSION_3_0 case GDK_KEY_Begin: