Changeset 63054 in vbox for trunk/src/VBox/Frontends/VirtualBox/src/runtime/UISession.cpp
- Timestamp:
- Aug 5, 2016 3:37:38 PM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VirtualBox/src/runtime/UISession.cpp
r62588 r63054 31 31 /* GUI includes: */ 32 32 # include "VBoxGlobal.h" 33 # include "UIDesktopWidgetWatchdog.h" 33 34 # include "UIExtraDataManager.h" 34 35 # include "UISession.h" … … 841 842 842 843 /* Check if display count changed: */ 843 if ( vboxGlobal().screenCount() != m_hostScreens.size())844 if (gpDesktop->screenCount() != m_hostScreens.size()) 844 845 { 845 846 /* Reset watchdog: */ … … 851 852 { 852 853 /* Check if at least one display geometry changed: */ 853 for (int iScreenIndex = 0; iScreenIndex < vboxGlobal().screenCount(); ++iScreenIndex)854 { 855 if ( vboxGlobal().screenGeometry(iScreenIndex) != m_hostScreens.at(iScreenIndex))854 for (int iScreenIndex = 0; iScreenIndex < gpDesktop->screenCount(); ++iScreenIndex) 855 { 856 if (gpDesktop->screenGeometry(iScreenIndex) != m_hostScreens.at(iScreenIndex)) 856 857 { 857 858 /* Reset watchdog: */ … … 2197 2198 { 2198 2199 m_hostScreens.clear(); 2199 for (int iScreenIndex = 0; iScreenIndex < vboxGlobal().screenCount(); ++iScreenIndex)2200 m_hostScreens << vboxGlobal().screenGeometry(iScreenIndex);2200 for (int iScreenIndex = 0; iScreenIndex < gpDesktop->screenCount(); ++iScreenIndex) 2201 m_hostScreens << gpDesktop->screenGeometry(iScreenIndex); 2201 2202 } 2202 2203
Note:
See TracChangeset
for help on using the changeset viewer.