shithub: choc

Download patch

ref: a69af94b58ac491c8a215ebe2f81b3a521b833f4
parent: 623b4b1a2fdb0a974b20f45a8a3d0bc14db13691
author: Simon Howard <[email protected]>
date: Sun Mar 27 19:45:53 EDT 2011

Scroll faster in reaction to the scroll wheel.

Subversion-branch: /trunk/chocolate-doom
Subversion-revision: 2310

--- a/textscreen/txt_scrollpane.c
+++ b/textscreen/txt_scrollpane.c
@@ -420,11 +420,11 @@
     {
         if (scrollbars & SCROLLBAR_VERTICAL)
         {
-            --scrollpane->y;
+            scrollpane->y -= 3;
         }
         else if (scrollbars & SCROLLBAR_HORIZONTAL)
         {
-            --scrollpane->x;
+            scrollpane->x -= 3;
         }
 
         return;
@@ -433,11 +433,11 @@
     {
         if (scrollbars & SCROLLBAR_VERTICAL)
         {
-            ++scrollpane->y;
+            scrollpane->y += 3;
         }
         else if (scrollbars & SCROLLBAR_HORIZONTAL)
         {
-            ++scrollpane->x;
+            scrollpane->x += 3;
         }
 
         return;