mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-01-19 20:24:49 +00:00
Merge pull request #2014 from RichardsGameStudio/windows10-creator-DesktopRes
Solves issue with getDesktopResolution and Windows 10 Creator update
This commit is contained in:
parent
e149024b8f
commit
0f1d270411
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in a new issue