- Scroll two rows at a time with the mouse wheel in the options menu.

SVN r2828 (trunk)
This commit is contained in:
Randy Heit 2010-09-19 03:52:18 +00:00
parent 94ce4d5d69
commit 503ae5a9ee
1 changed files with 4 additions and 5 deletions

View File

@ -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;