mirror of
https://github.com/ARMSX2/ARMSX2.git
synced 2026-08-24 16:50:16 -07:00
BPM: Fix CTD when exiting BPM in No GUI mode
This commit is contained in:
committed by
lightningterror
parent
f87175dc7f
commit
8b90e2d53d
@@ -1602,7 +1602,7 @@ void FullscreenUI::DrawExitWindow()
|
||||
|
||||
ImGui::PushStyleColor(ImGuiCol_Text, UIBackgroundTextColor);
|
||||
|
||||
if (BeginHorizontalMenu("exit_window", menu_pos, menu_size, 3))
|
||||
if (BeginHorizontalMenu("exit_window", menu_pos, menu_size, (Host::InNoGUIMode()) ? 2 : 3))
|
||||
{
|
||||
ResetFocusHere();
|
||||
|
||||
@@ -1621,10 +1621,13 @@ void FullscreenUI::DrawExitWindow()
|
||||
DoRequestExit();
|
||||
}
|
||||
|
||||
if (HorizontalMenuItem(GetCachedTexture("fullscreenui/desktop-mode.png"), FSUI_CSTR("Desktop Mode"),
|
||||
FSUI_CSTR("Exits Big Picture mode, returning to the desktop interface.")))
|
||||
if (!Host::InNoGUIMode())
|
||||
{
|
||||
DoDesktopMode();
|
||||
if (HorizontalMenuItem(GetCachedTexture("fullscreenui/desktop-mode.png"), FSUI_CSTR("Desktop Mode"),
|
||||
FSUI_CSTR("Exits Big Picture mode, returning to the desktop interface.")))
|
||||
{
|
||||
DoDesktopMode();
|
||||
}
|
||||
}
|
||||
}
|
||||
EndHorizontalMenu();
|
||||
|
||||
Reference in New Issue
Block a user