- fixed adjustment of options menu slider with mouse

https://forum.zdoom.org/viewtopic.php?t=64063
This commit is contained in:
alexey.lysiuk 2019-03-25 12:59:36 +02:00
parent 26b8646ec1
commit 6c91d15b0a

View file

@ -811,8 +811,8 @@ class OptionMenuSliderBase : OptionMenuItem
lm.ReleaseFocus();
}
int slide_left = mDrawX+8*CleanXfac_1;
int slide_right = slide_left + (10*8*CleanXfac_1 >> mSliderShort); // 12 char cells with 8 pixels each.
int slide_left = mDrawX+16*CleanXfac_1;
int slide_right = slide_left + (10*16*CleanXfac_1 >> mSliderShort); // 10 char cells with 16 pixels each.
if (type == Menu.MOUSE_Click)
{