Skip to content

Commit

Permalink
Fix graphics option crash
Browse files Browse the repository at this point in the history
  • Loading branch information
IonAgorria committed May 23, 2024
1 parent acc0cbe commit 0e7cf1c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Source/UserInterface/OptionsMenu.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -232,7 +232,7 @@ int rejectResolutionAction(float, float) {
GraphOptionsManager::getInstance().reject();
OnComboGraphicsSettings(_shellIconManager.GetWnd(SQSH_MM_SETTINGS_COMBO), EVENT_CREATEWND, -1);
OnComboGraphicsResolution(_shellIconManager.GetWnd(SQSH_MM_GRAPHICS_RESOLUTION_COMBO), EVENT_CREATEWND, -1);
OnComboGraphicsVSync(_shellIconManager.GetWnd(SQSH_MM_GRAPHICS_COLORDEPTH_COMBO), EVENT_CREATEWND, -1);
OnComboGraphicsVSync(_shellIconManager.GetWnd(SQSH_MM_GRAPHICS_VSYNC_COMBO), EVENT_CREATEWND, -1);
hideMessageBox();
}
return 0;
Expand Down Expand Up @@ -601,7 +601,7 @@ void onMMGraphicsButton(CShellWindow* pWnd, InterfaceEventCode code, int param)
if( code == EVENT_UNPRESSED && intfCanHandleInput() ) {
OnComboGraphicsSettings(_shellIconManager.GetWnd(SQSH_MM_SETTINGS_COMBO), EVENT_CREATEWND, -1);
OnComboGraphicsResolution(_shellIconManager.GetWnd(SQSH_MM_GRAPHICS_RESOLUTION_COMBO), EVENT_CREATEWND, -1);
OnComboGraphicsVSync(_shellIconManager.GetWnd(SQSH_MM_GRAPHICS_COLORDEPTH_COMBO), EVENT_CREATEWND, -1);
OnComboGraphicsVSync(_shellIconManager.GetWnd(SQSH_MM_GRAPHICS_VSYNC_COMBO), EVENT_CREATEWND, -1);
_shellIconManager.SwitchMenuScreens(pWnd->m_pParent->ID, SQSH_MM_GRAPHICS_SCR);
}
}
Expand Down

0 comments on commit 0e7cf1c

Please sign in to comment.