Merged from master "Declare "result" as LONG for Mingw build"
This commit is contained in:
parent
4ad410969e
commit
bf279a59fa
@ -1101,7 +1101,7 @@ bool Win32WindowingSystem::changeScreenSettings( const osg::GraphicsContext::Scr
|
||||
// Start by testing if the change would be successful (without applying it)
|
||||
//
|
||||
|
||||
int result = ::ChangeDisplaySettingsEx(displayDevice.DeviceName, &deviceMode, NULL, CDS_TEST, NULL);
|
||||
LONG result = ::ChangeDisplaySettingsEx(displayDevice.DeviceName, &deviceMode, NULL, CDS_TEST, NULL);
|
||||
if (result==DISP_CHANGE_SUCCESSFUL)
|
||||
{
|
||||
result = ::ChangeDisplaySettingsEx(displayDevice.DeviceName, &deviceMode, NULL, 0, NULL);
|
||||
|
Loading…
Reference in New Issue
Block a user