mirror of
https://github.com/ZDoom/Raze.git
synced 2024-11-16 01:11:44 +00:00
Fix the position of the notch when scaling the slidebar with the mouse.
Patch from Fox. git-svn-id: https://svn.eduke32.com/eduke32@6713 1a8010ca-5511-0410-912e-c29ae57300e0
This commit is contained in:
parent
b7dfd992ae
commit
920ec3f6a2
1 changed files with 1 additions and 1 deletions
|
@ -4765,7 +4765,7 @@ static int32_t M_RunMenu_Menu(Menu_t *cm, MenuMenu_t *menu, MenuEntry_t *current
|
|||
|
||||
if (!m_mousecaught && (mousepressstate == Mouse_Pressed || mousepressstate == Mouse_Held))
|
||||
{
|
||||
const int32_t slidepointhalfwidth = mulscale16((2+tilesiz[SLIDEBAR+1].x)<<15, z);
|
||||
const int32_t slidepointhalfwidth = mulscale16((((tilesiz[SLIDEBAR+1].x)*ud.menu_slidecursorz)>>2) + ud.menu_slidebarmargin, z);
|
||||
const int32_t slideregionx = slidebarx + slidepointhalfwidth;
|
||||
|
||||
menu->currentEntry = e;
|
||||
|
|
Loading…
Reference in a new issue