forked from Ports/perfect_dark
Forbid mousescroll if dialog is dimmed
This commit is contained in:
1 file changed
+1
-1
+1
-1
@@ -4539,7 +4539,7 @@ void dialogTick(struct menudialog *dialog, struct menuinputs *inputs, u32 tickfl
|
|||||||
|
|
||||||
if ((dialog->focuseditem->flags & MENUITEMFLAG_00010000) == 0) {
|
if ((dialog->focuseditem->flags & MENUITEMFLAG_00010000) == 0) {
|
||||||
#ifndef PLATFORM_N64
|
#ifndef PLATFORM_N64
|
||||||
if (g_MenuUsingMouse) {
|
if (g_MenuUsingMouse && !dialog->dimmed) {
|
||||||
dstscroll = dialog->dstscroll - inputs->mousescroll * LINEHEIGHT;
|
dstscroll = dialog->dstscroll - inputs->mousescroll * LINEHEIGHT;
|
||||||
} else
|
} else
|
||||||
#endif
|
#endif
|
||||||
|
|||||||
Reference in new issue
Block a user