mirror of
https://github.com/optiscaler/OptiScaler.git
synced 2026-09-23 05:46:27 +00:00
Corrected one overlook at CreateSwapchainForHwnd
This commit is contained in:
@@ -426,10 +426,10 @@ HRESULT DxgiFactoryHooks::CreateSwapChainForHwnd(IDXGIFactory2* realFactory, IUn
|
||||
if (pFullscreenDesc != nullptr)
|
||||
State::Instance().realExclusiveFullscreen = !pFullscreenDesc->Windowed;
|
||||
|
||||
if (pFullscreenDesc != nullptr && State::Instance().activeFgOutput == FGOutput::XeFG &&
|
||||
if (State::Instance().activeFgOutput == FGOutput::XeFG &&
|
||||
Config::Instance()->FGXeFGForceBorderless.value_or_default())
|
||||
{
|
||||
if (!pFullscreenDesc->Windowed)
|
||||
if (pFullscreenDesc != nullptr && !pFullscreenDesc->Windowed)
|
||||
{
|
||||
State::Instance().SCExclusiveFullscreen = true;
|
||||
pFullscreenDesc->Windowed = true;
|
||||
|
||||
@@ -296,10 +296,10 @@ HRESULT DxgiFactoryWrappedCalls::CreateSwapChainForHwnd(IDXGIFactory2* realFacto
|
||||
if (pFullscreenDesc != nullptr)
|
||||
State::Instance().realExclusiveFullscreen = !pFullscreenDesc->Windowed;
|
||||
|
||||
if (pFullscreenDesc != nullptr && State::Instance().activeFgOutput == FGOutput::XeFG &&
|
||||
if (State::Instance().activeFgOutput == FGOutput::XeFG &&
|
||||
Config::Instance()->FGXeFGForceBorderless.value_or_default())
|
||||
{
|
||||
if (!pFullscreenDesc->Windowed)
|
||||
if (pFullscreenDesc != nullptr && !pFullscreenDesc->Windowed)
|
||||
{
|
||||
State::Instance().SCExclusiveFullscreen = true;
|
||||
pFullscreenDesc->Windowed = true;
|
||||
|
||||
Reference in New Issue
Block a user