From 6c91d15b0a95d9009ba55ebfbb8e132c53fc70c6 Mon Sep 17 00:00:00 2001 From: "alexey.lysiuk" Date: Mon, 25 Mar 2019 12:59:36 +0200 Subject: [PATCH] - fixed adjustment of options menu slider with mouse https://forum.zdoom.org/viewtopic.php?t=64063 --- wadsrc/static/zscript/ui/menu/optionmenuitems.zs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/wadsrc/static/zscript/ui/menu/optionmenuitems.zs b/wadsrc/static/zscript/ui/menu/optionmenuitems.zs index 246710e94..c4b65a46d 100644 --- a/wadsrc/static/zscript/ui/menu/optionmenuitems.zs +++ b/wadsrc/static/zscript/ui/menu/optionmenuitems.zs @@ -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) {