Buildfixes

This commit is contained in:
Henrik Rydgård
2026-02-02 12:16:35 +01:00
parent ad4da764df
commit 9e7afa414c
3 changed files with 4 additions and 6 deletions
+1 -1
View File
@@ -549,7 +549,7 @@ TOGGLE_METHOD_INVERSE(BreakOnLoad, g_Config.bAutoRun)
TOGGLE_METHOD(IgnoreIllegalRWs, g_Config.bIgnoreBadMemAccess)
TOGGLE_METHOD(AutoFrameSkip, g_Config.bAutoFrameSkip, g_Config.UpdateAfterSettingAutoFrameSkip())
TOGGLE_METHOD(SoftwareRendering, g_Config.bSoftwareRendering)
TOGGLE_METHOD(FullScreen, g_Config.bFullScreen, System_SetFullscreenState(!g_Config.bFullScreen));
TOGGLE_METHOD(FullScreen, g_Config.bFullScreen, g_Config.bFullScreen = !g_Config.bFullScreen, System_ApplyFullscreenState());
// TOGGLE_METHOD(VSync, g_Config.bVSync)
#undef TOGGLE_METHOD
-2
View File
@@ -1435,10 +1435,8 @@ void MainScreen::CreateViews() {
if (fullscreenButton_) {
fullscreenButton_->SetImageID(ImageID(!g_Config.bFullScreen ? "I_RESTORE" : "I_FULLSCREEN"));
}
#if !defined(MOBILE_DEVICE)
g_Config.bFullScreen = !g_Config.bFullScreen;
System_ApplyFullscreenState();
#endif
});
#endif
rightColumnItems->Add(logo);
+3 -3
View File
@@ -581,7 +581,7 @@ bool System_MakeRequest(SystemRequestType type, int requestId, const std::string
winrt::Windows::ApplicationModel::DataTransfer::Clipboard::SetContent(dataPackage);
return true;
}
case SystemRequestType::TOGGLE_FULLSCREEN_STATE:
case SystemRequestType::APPLY_FULLSCREEN_STATE:
{
auto view = winrt::Windows::UI::ViewManagement::ApplicationView::GetForCurrentView();
bool flag = !view.IsFullScreenMode();
@@ -590,9 +590,9 @@ bool System_MakeRequest(SystemRequestType type, int requestId, const std::string
} else if (param1 == "1"){
flag = true;
}
if (flag) {
if (flag && g_Config.bFullScreen) {
view.TryEnterFullScreenMode();
} else {
} else if (!g_Config.bFullScreen){
view.ExitFullScreenMode();
}
return true;