Changeset 49306 in vbox for trunk/src/VBox/Frontends
- Timestamp:
- Oct 28, 2013 12:46:49 PM (12 years ago)
- svn:sync-xref-src-repo-rev:
- 90268
- Location:
- trunk/src/VBox/Frontends/VirtualBox/src/runtime
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VirtualBox/src/runtime/UIFrameBuffer.cpp
r49262 r49306 45 45 , m_width(0), m_height(0) 46 46 , m_fIsMarkedAsUnused(false) 47 , m_fIsAutoEnabled(false) 47 48 #ifdef Q_OS_WIN 48 49 , m_iRefCnt(0) … … 82 83 m_fIsMarkedAsUnused = fIsMarkAsUnused; 83 84 unlock(); 85 } 86 87 /** 88 * Returns the framebuffer <b>auto-enabled</b> status. 89 * @returns @c true if guest-screen corresponding to this framebuffer was automatically enabled by 90 the auto-mount guest-screen auto-pilot, @c false otherwise. 91 * @note <i>Auto-enabled</i> status means the framebuffer was automatically enabled by the multi-screen layout 92 * and so have potentially incorrect guest size hint posted into guest event queue. Machine-view will try to 93 * automatically adjust guest-screen size as soon as possible. 94 */ 95 bool UIFrameBuffer::isAutoEnabled() const 96 { 97 return m_fIsAutoEnabled; 98 } 99 100 /** 101 * Sets the framebuffer <b>auto-enabled</b> status. 102 * @param fIsAutoEnabled determines whether guest-screen corresponding to this framebuffer 103 * was automatically enabled by the auto-mount guest-screen auto-pilot. 104 * @note <i>Auto-enabled</i> status means the framebuffer was automatically enabled by the multi-screen layout 105 * and so have potentially incorrect guest size hint posted into guest event queue. Machine-view will try to 106 * automatically adjust guest-screen size as soon as possible. 107 */ 108 void UIFrameBuffer::setAutoEnabled(bool fIsAutoEnabled) 109 { 110 m_fIsAutoEnabled = fIsAutoEnabled; 84 111 } 85 112 -
trunk/src/VBox/Frontends/VirtualBox/src/runtime/UIFrameBuffer.h
r49262 r49306 107 107 void setMarkAsUnused(bool fIsMarkAsUnused); 108 108 109 /* API: Auto-enabled stuff: */ 110 bool isAutoEnabled() const; 111 void setAutoEnabled(bool fIsAutoEnabled); 112 109 113 NS_DECL_ISUPPORTS 110 114 … … 214 218 int64_t m_WinId; 215 219 bool m_fIsMarkedAsUnused; 220 bool m_fIsAutoEnabled; 216 221 217 222 /* To avoid a seamless flicker, -
trunk/src/VBox/Frontends/VirtualBox/src/runtime/UIMultiScreenLayout.cpp
r48892 r49306 175 175 if (pFrameBuffer->height() > 0) 176 176 uHeight = pFrameBuffer->height(); 177 pFrameBuffer->setAutoEnabled(true); 177 178 } 178 179 /* Re-enable guest-screen with proper resolution: */ -
trunk/src/VBox/Frontends/VirtualBox/src/runtime/fullscreen/UIMachineViewFullscreen.cpp
r49177 r49306 140 140 { 141 141 /* Check if we should adjust guest to new size: */ 142 if ((int)frameBuffer()->width() != workingArea().size().width() || 142 if (frameBuffer()->isAutoEnabled() || 143 (int)frameBuffer()->width() != workingArea().size().width() || 143 144 (int)frameBuffer()->height() != workingArea().size().height()) 144 145 if (m_bIsGuestAutoresizeEnabled && uisession()->isGuestSupportsGraphics()) 146 { 147 frameBuffer()->setAutoEnabled(false); 145 148 sltPerformGuestResize(workingArea().size()); 149 } 146 150 } 147 151 -
trunk/src/VBox/Frontends/VirtualBox/src/runtime/seamless/UIMachineViewSeamless.cpp
r49177 r49306 158 158 { 159 159 /* Check if we should adjust guest to new size: */ 160 if ((int)frameBuffer()->width() != workingArea().size().width() || 160 if (frameBuffer()->isAutoEnabled() || 161 (int)frameBuffer()->width() != workingArea().size().width() || 161 162 (int)frameBuffer()->height() != workingArea().size().height()) 162 163 if (uisession()->isGuestSupportsGraphics()) 164 { 165 frameBuffer()->setAutoEnabled(false); 163 166 sltPerformGuestResize(workingArea().size()); 167 } 164 168 } 165 169
Note:
See TracChangeset
for help on using the changeset viewer.