Changeset 53954 in vbox
- Timestamp:
- Jan 23, 2015 4:47:20 PM (10 years ago)
- Location:
- trunk/src/VBox/Frontends/VirtualBox/src/runtime
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VirtualBox/src/runtime/UIFrameBuffer.cpp
r53898 r53954 668 668 669 669 /* Remind user if necessary, ignore text and VGA modes: */ 670 /* This check (supports graphics) is not quite right due to past mistakes 671 * in the Guest Additions protocol, but in practice it should be fine. */ 670 672 if ( ulGuestBitsPerPixel != ulBitsPerPixel 671 673 && ulGuestBitsPerPixel != 0 672 && m_pMachineView->uisession()->isGuest AdditionsActive())674 && m_pMachineView->uisession()->isGuestSupportsGraphics()) 673 675 popupCenter().remindAboutWrongColorDepth(m_pMachineView->machineWindow(), 674 676 ulGuestBitsPerPixel, ulBitsPerPixel); -
trunk/src/VBox/Frontends/VirtualBox/src/runtime/UIMultiScreenLayout.cpp
r53287 r53954 245 245 bool fSuccess = true; 246 246 CMachine machine = m_pMachineLogic->session().GetMachine(); 247 if (m_pMachineLogic->uisession()->isGuest AdditionsActive())247 if (m_pMachineLogic->uisession()->isGuestSupportsGraphics()) 248 248 { 249 249 quint64 availBits = machine.GetVRAMSize() * _1M * 8; -
trunk/src/VBox/Frontends/VirtualBox/src/runtime/UISession.h
r53320 r53954 190 190 /* Guest additions state getters: */ 191 191 bool isGuestAdditionsActive() const { return (m_ulGuestAdditionsRunLevel > AdditionsRunLevelType_None); } 192 bool isGuestSupportsGraphics() const { return isGuestAdditionsActive() && m_fIsGuestSupportsGraphics; } 192 bool isGuestSupportsGraphics() const { return m_fIsGuestSupportsGraphics; } 193 /* The double check below is correct, even though it is an implementation 194 * detail of the Additions which the GUI should not ideally have to know. */ 193 195 bool isGuestSupportsSeamless() const { return isGuestSupportsGraphics() && m_fIsGuestSupportsSeamless; } 194 196 -
trunk/src/VBox/Frontends/VirtualBox/src/runtime/fullscreen/UIMachineLogicFullscreen.cpp
r53065 r53954 68 68 { 69 69 /* Check if there is enough physical memory to enter fullscreen: */ 70 if (uisession()->isGuest AdditionsActive())70 if (uisession()->isGuestSupportsGraphics()) 71 71 { 72 72 quint64 availBits = machine().GetVRAMSize() /* VRAM */ * _1M /* MiB to bytes */ * 8 /* to bits */; -
trunk/src/VBox/Frontends/VirtualBox/src/runtime/seamless/UIMachineLogicSeamless.cpp
r53065 r53954 66 66 { 67 67 /* Check if there is enough physical memory to enter seamless: */ 68 if (uisession()->isGuest AdditionsActive())68 if (uisession()->isGuestSupportsSeamless()) 69 69 { 70 70 quint64 availBits = machine().GetVRAMSize() /* VRAM */ * _1M /* MiB to bytes */ * 8 /* to bits */;
Note:
See TracChangeset
for help on using the changeset viewer.