Skip to content

Commit

Permalink
Fix dev menu button on touch screen
Browse files Browse the repository at this point in the history
  • Loading branch information
MegAmi24 committed Mar 9, 2024
1 parent 8f838e2 commit b95a333
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
3 changes: 1 addition & 2 deletions .clang-format
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ AllowShortLoopsOnASingleLine: true
BinPackArguments: true
BinPackParameters: true
SpaceAfterCStyleCast: false
BreakBeforeBraces: Attach
BreakBeforeBraces: Custom
BreakBeforeTernaryOperators: true
BreakBeforeBinaryOperators: NonAssignment
Cpp11BracedListStyle: false
Expand All @@ -23,7 +23,6 @@ AlignConsecutiveAssignments: true
AlignConsecutiveDeclarations: false
AlignConsecutiveMacros: true
UseTab: Never
BreakBeforeBraces: Custom
BraceWrapping:
AfterClass: true
AfterControlStatement: false
Expand Down
5 changes: 5 additions & 0 deletions RSDKv4/NativeObjects/OptionsMenu.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -128,6 +128,11 @@ void OptionsMenu_Main(void *objPtr)
self->buttons[i]->state = SUBMENUBUTTON_STATE_FLASHING2;
self->buttons[i]->b = 0xFF;
self->state = OPTIONSMENU_STATE_ACTION;
#if !RETRO_USE_ORIGINAL_CODE
self->unused1 = Engine.devMenu && self->selectedButton == OPTIONSMENU_BUTTON_INSTRUCTIONS;
if (self->unused1)
StopMusic(true);
#endif
break;
}
y -= 30.0;
Expand Down

0 comments on commit b95a333

Please sign in to comment.