diff options
author | Philipp Lohmann [pl] <Philipp.Lohmann@Sun.COM> | 2010-05-26 16:28:48 +0200 |
---|---|---|
committer | Philipp Lohmann [pl] <Philipp.Lohmann@Sun.COM> | 2010-05-26 16:28:48 +0200 |
commit | d0fdd4f0c77bd5fdccb7f7eb1d49dba4e5d1657a (patch) | |
tree | 9bdf177770ade73cbbe85ef086fa1652e3117430 /vcl/win | |
parent | 7295d72f7c3b49039bad9db00588813d27ab72df (diff) |
vcl112: #i111824# fix detached monitors case for more than two monitors (thanks thb !)
Diffstat (limited to 'vcl/win')
-rw-r--r-- | vcl/win/source/app/salinfo.cxx | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/vcl/win/source/app/salinfo.cxx b/vcl/win/source/app/salinfo.cxx index b7ea81d313ae..14cb5d63437a 100644 --- a/vcl/win/source/app/salinfo.cxx +++ b/vcl/win/source/app/salinfo.cxx @@ -160,7 +160,8 @@ bool WinSalSystem::initMonitors() std::hash_map< rtl::OUString, int, rtl::OUStringHash > aDeviceStringCount; while( EnumDisplayDevicesW( NULL, nDevice++, &aDev, 0 ) ) { - if( (aDev.StateFlags & DISPLAY_DEVICE_MIRRORING_DRIVER) == 0 ) // sort out non monitors + if( (aDev.StateFlags & DISPLAY_DEVICE_ACTIVE) + && !(aDev.StateFlags & DISPLAY_DEVICE_MIRRORING_DRIVER) ) // sort out non/disabled monitors { aDev.DeviceName[31] = 0; aDev.DeviceString[127] = 0; |