Merge pull request #2014 from RichardsGameStudio/windows10-creator-DesktopRes

Solves issue with getDesktopResolution and Windows 10 Creator update
This commit is contained in:
Areloch 2017-05-22 01:26:40 -05:00 committed by Areloch
parent e149024b8f
commit 0f1d270411

View file

@ -89,7 +89,7 @@ Point2I Win32WindowManager::getDesktopResolution()
dMemset( &devMode, 0, sizeof( devMode ) );
devMode.dmSize = sizeof( devMode );
if (!::EnumDisplaySettings(NULL, ENUM_REGISTRY_SETTINGS, &devMode))
if (!::EnumDisplaySettings(NULL, ENUM_CURRENT_SETTINGS, &devMode))
return Point2I(-1,-1);
// Return Resolution
@ -102,7 +102,7 @@ S32 Win32WindowManager::getDesktopBitDepth()
dMemset( &devMode, 0, sizeof( devMode ) );
devMode.dmSize = sizeof( devMode );
if (!::EnumDisplaySettings(NULL, ENUM_REGISTRY_SETTINGS, &devMode))
if (!::EnumDisplaySettings(NULL, ENUM_CURRENT_SETTINGS, &devMode))
return -1;
// Return Bits per Pixel