mirror of
https://github.com/hrydgard/ppsspp.git
synced 2026-07-11 01:25:07 +02:00
Buildfixes
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
@@ -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);
|
||||
|
||||
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user