Skip to content

Commit

Permalink
Added PLATFORM_WIN32 to last fix.
Browse files Browse the repository at this point in the history
  • Loading branch information
tx00100xt committed Oct 30, 2023
1 parent 9f66ce0 commit 8b99a3f
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions SamTFE/Sources/Engine/Graphics/GfxLibrary.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1532,6 +1532,7 @@ BOOL CGfxLibrary::StartDisplayMode( enum GfxAPIType eAPI, INDEX iAdapter, PIX pi
#ifdef SE1_VULKAN
else if (eAPI == GAT_VK)
{
#ifdef PLATFORM_WIN32
PIX pixCurrentSizeI = ::GetSystemMetrics(SM_CXSCREEN);
PIX pixCurrentSizeJ = ::GetSystemMetrics(SM_CYSCREEN);
if ( (pixCurrentSizeI == pixSizeI) && (pixCurrentSizeJ == pixSizeJ) ) {
Expand All @@ -1548,6 +1549,7 @@ BOOL CGfxLibrary::StartDisplayMode( enum GfxAPIType eAPI, INDEX iAdapter, PIX pi
CDS_ResetMode();
}
}
#endif
// startup Vulkan

bSuccess = InitDriver_Vulkan();
Expand Down
2 changes: 2 additions & 0 deletions SamTSE/Sources/Engine/Graphics/GfxLibrary.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1532,6 +1532,7 @@ BOOL CGfxLibrary::StartDisplayMode( enum GfxAPIType eAPI, INDEX iAdapter, PIX pi
#ifdef SE1_VULKAN
else if (eAPI == GAT_VK)
{
#ifdef PLATFORM_WIN32
PIX pixCurrentSizeI = ::GetSystemMetrics(SM_CXSCREEN);
PIX pixCurrentSizeJ = ::GetSystemMetrics(SM_CYSCREEN);
if ( (pixCurrentSizeI == pixSizeI) && (pixCurrentSizeJ == pixSizeJ) ) {
Expand All @@ -1548,6 +1549,7 @@ BOOL CGfxLibrary::StartDisplayMode( enum GfxAPIType eAPI, INDEX iAdapter, PIX pi
CDS_ResetMode();
}
}
#endif
// startup Vulkan

bSuccess = InitDriver_Vulkan();
Expand Down

0 comments on commit 8b99a3f

Please sign in to comment.