foxygit / doom Log in
commit a69af94b58ac491c8a215ebe2f81b3a521b833f4
Author:     Simon Howard <fraggle@gmail.com>
AuthorDate: Sun Mar 27 23:45:53 2011 +0000
Commit:     Simon Howard <fraggle@gmail.com>
CommitDate: Sun Mar 27 23:45:53 2011 +0000

    Scroll faster in reaction to the scroll wheel.

    Subversion-branch: /trunk/chocolate-doom
    Subversion-revision: 2310
---
 textscreen/txt_scrollpane.c | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/textscreen/txt_scrollpane.c b/textscreen/txt_scrollpane.c
index 903c7910..856f6b8a 100644
--- a/textscreen/txt_scrollpane.c
+++ b/textscreen/txt_scrollpane.c
@@ -420,11 +420,11 @@ static void TXT_ScrollPaneMousePress(TXT_UNCAST_ARG(scrollpane),
     {
         if (scrollbars & SCROLLBAR_VERTICAL)
         {
-            --scrollpane->y;
+            scrollpane->y -= 3;
         }
         else if (scrollbars & SCROLLBAR_HORIZONTAL)
         {
-            --scrollpane->x;
+            scrollpane->x -= 3;
         }

         return;
@@ -433,11 +433,11 @@ static void TXT_ScrollPaneMousePress(TXT_UNCAST_ARG(scrollpane),
     {
         if (scrollbars & SCROLLBAR_VERTICAL)
         {
-            ++scrollpane->y;
+            scrollpane->y += 3;
         }
         else if (scrollbars & SCROLLBAR_HORIZONTAL)
         {
-            ++scrollpane->x;
+            scrollpane->x += 3;
         }

         return;