From 503ae5a9eea232329ceb739132da20135bc7def8 Mon Sep 17 00:00:00 2001 From: Randy Heit Date: Sun, 19 Sep 2010 03:52:18 +0000 Subject: [PATCH] - Scroll two rows at a time with the mouse wheel in the options menu. SVN r2828 (trunk) --- src/menu/optionmenu.cpp | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/src/menu/optionmenu.cpp b/src/menu/optionmenu.cpp index 5661eec8e..cebaf9c83 100644 --- a/src/menu/optionmenu.cpp +++ b/src/menu/optionmenu.cpp @@ -138,17 +138,16 @@ bool DOptionMenu::Responder (event_t *ev) { if (ev->subtype == EV_GUI_WheelUp) { - if (mDesc->mScrollPos > 0) - { - mDesc->mScrollPos--; - } + int scrollamt = MIN(2, mDesc->mScrollPos); + mDesc->mScrollPos -= scrollamt; return true; } else if (ev->subtype == EV_GUI_WheelDown) { if (CanScrollDown) { - mDesc->mScrollPos++; + mDesc->mScrollPos += 2; + VisBottom += 2; VisBottom++; } return true;