mirror of
https://github.com/ZDoom/gzdoom-gles.git
synced 2024-11-10 14:51:46 +00:00
- Scroll two rows at a time with the mouse wheel in the options menu.
SVN r2828 (trunk)
This commit is contained in:
parent
94ce4d5d69
commit
503ae5a9ee
1 changed files with 4 additions and 5 deletions
|
@ -138,17 +138,16 @@ bool DOptionMenu::Responder (event_t *ev)
|
||||||
{
|
{
|
||||||
if (ev->subtype == EV_GUI_WheelUp)
|
if (ev->subtype == EV_GUI_WheelUp)
|
||||||
{
|
{
|
||||||
if (mDesc->mScrollPos > 0)
|
int scrollamt = MIN(2, mDesc->mScrollPos);
|
||||||
{
|
mDesc->mScrollPos -= scrollamt;
|
||||||
mDesc->mScrollPos--;
|
|
||||||
}
|
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
else if (ev->subtype == EV_GUI_WheelDown)
|
else if (ev->subtype == EV_GUI_WheelDown)
|
||||||
{
|
{
|
||||||
if (CanScrollDown)
|
if (CanScrollDown)
|
||||||
{
|
{
|
||||||
mDesc->mScrollPos++;
|
mDesc->mScrollPos += 2;
|
||||||
|
VisBottom += 2;
|
||||||
VisBottom++;
|
VisBottom++;
|
||||||
}
|
}
|
||||||
return true;
|
return true;
|
||||||
|
|
Loading…
Reference in a new issue