Merge pull request #977 from poelmanc/patch-3
Declare "result" as LONG for Mingw build
This commit is contained in:
commit
9c33a49f23
@ -846,7 +846,7 @@ bool Win32WindowingSystem::changeScreenSettings( const osg::GraphicsContext::Scr
|
|||||||
// Start by testing if the change would be successful (without applying it)
|
// 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)
|
if (result==DISP_CHANGE_SUCCESSFUL)
|
||||||
{
|
{
|
||||||
result = ::ChangeDisplaySettingsEx(displayDevice.DeviceName, &deviceMode, NULL, 0, NULL);
|
result = ::ChangeDisplaySettingsEx(displayDevice.DeviceName, &deviceMode, NULL, 0, NULL);
|
||||||
|
Loading…
Reference in New Issue
Block a user