summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSimon Howard2011-03-27 23:45:53 +0000
committerSimon Howard2011-03-27 23:45:53 +0000
commita69af94b58ac491c8a215ebe2f81b3a521b833f4 (patch)
tree806ddc0e61aabb0abcb034e15ac27f7d93f3ab66
parent623b4b1a2fdb0a974b20f45a8a3d0bc14db13691 (diff)
downloadchocolate-doom-a69af94b58ac491c8a215ebe2f81b3a521b833f4.tar.gz
chocolate-doom-a69af94b58ac491c8a215ebe2f81b3a521b833f4.tar.bz2
chocolate-doom-a69af94b58ac491c8a215ebe2f81b3a521b833f4.zip
Scroll faster in reaction to the scroll wheel.
Subversion-branch: /trunk/chocolate-doom Subversion-revision: 2310
-rw-r--r--textscreen/txt_scrollpane.c8
1 files 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;