mirror of
https://github.com/elasota/Aerofoil.git
synced 2025-09-23 14:53:52 +00:00
Fix full-screen being disabled when going to preferences but not viewing display options
This commit is contained in:
@@ -918,8 +918,6 @@ void DisplayUpdate (Dialog *theDialog)
|
|||||||
SetDialogItemValue(theDialog, k32BitColorItem, wasDepthPref == 32);
|
SetDialogItemValue(theDialog, k32BitColorItem, wasDepthPref == 32);
|
||||||
SetDialogItemValue(theDialog, kScaleResolutionItem, (short)isAutoScale);
|
SetDialogItemValue(theDialog, kScaleResolutionItem, (short)isAutoScale);
|
||||||
SetDialogItemValue(theDialog, kUseICCProfileItem, (short)isUseICCProfile);
|
SetDialogItemValue(theDialog, kUseICCProfileItem, (short)isUseICCProfile);
|
||||||
|
|
||||||
wasFullscreenPref = PortabilityLayer::HostDisplayDriver::GetInstance()->IsFullScreen();
|
|
||||||
SetDialogItemValue(theDialog, kFullScreenItem, wasFullscreenPref);
|
SetDialogItemValue(theDialog, kFullScreenItem, wasFullscreenPref);
|
||||||
|
|
||||||
FrameDisplayIcon(theDialog, StdColors::Red());
|
FrameDisplayIcon(theDialog, StdColors::Red());
|
||||||
@@ -1286,6 +1284,8 @@ void DoSettingsMain (void)
|
|||||||
leaving = false;
|
leaving = false;
|
||||||
nextRestartChange = false;
|
nextRestartChange = false;
|
||||||
|
|
||||||
|
wasFullscreenPref = PortabilityLayer::HostDisplayDriver::GetInstance()->IsFullScreen();
|
||||||
|
|
||||||
Window* exclWindow = prefDlg->GetWindow();
|
Window* exclWindow = prefDlg->GetWindow();
|
||||||
|
|
||||||
PortabilityLayer::WindowManager::GetInstance()->SwapExclusiveWindow(exclWindow); // Push exclusive window
|
PortabilityLayer::WindowManager::GetInstance()->SwapExclusiveWindow(exclWindow); // Push exclusive window
|
||||||
|
Reference in New Issue
Block a user