Changeset 26567 in vbox for trunk/src/VBox
- Timestamp:
- Feb 16, 2010 11:23:41 AM (15 years ago)
- svn:sync-xref-src-repo-rev:
- 57749
- Location:
- trunk/src/VBox/Frontends/VirtualBox/src
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VirtualBox/src/VBoxConsoleView.cpp
r26509 r26567 1273 1273 #endif 1274 1274 1275 bool notifyManiWnd = mStoredConsoleSize.width() != re->width() 1276 || mStoredConsoleSize.height() != re->height(); 1277 1278 1275 1279 /* Store the new size to prevent unwanted resize hints being 1276 1280 * sent back. */ … … 1359 1363 } 1360 1364 1361 mMainWnd->onDisplayResize (re->width(), re->height()); 1365 if (notifyManiWnd) 1366 mMainWnd->onDisplayResize (re->width(), re->height()); 1362 1367 1363 1368 return true; -
trunk/src/VBox/Frontends/VirtualBox/src/VBoxConsoleWnd.cpp
r26469 r26567 1235 1235 } 1236 1236 1237 void VBoxConsoleWnd::onDisplayResize (ulong aHeight, ulong aWidth) 1238 { 1239 if (mIsSeamless && QApplication::desktop()->availableGeometry (this).size() != QSize (aHeight, aWidth)) 1240 { 1241 mVmSeamlessAction->setChecked (false); 1242 /* should be cleared already, but just in case */ 1243 if (mIsSeamless) 1244 toggleFullscreenMode (false, true); 1237 void VBoxConsoleWnd::onDisplayResize (ulong aWidth, ulong aHeight) 1238 { 1239 if (mIsSeamless) 1240 { 1241 const QRect & geo = QApplication::desktop()->availableGeometry (this); 1242 int dW = geo.width() - (int)aWidth; 1243 int dH = geo.height() - (int)aHeight; 1244 if (RT_ABS (dW) > 16 || RT_ABS (dH) > 16) 1245 { 1246 mVmSeamlessAction->setChecked (false); 1247 /* should be cleared already, but just in case */ 1248 if (mIsSeamless) 1249 toggleFullscreenMode (false, true); 1250 } 1245 1251 } 1246 1252 } -
trunk/src/VBox/Frontends/VirtualBox/src/VBoxConsoleWnd.h
r25583 r26567 113 113 114 114 /* informs that the guest display is resized */ 115 void onDisplayResize (ulong a Height, ulong aWidth);115 void onDisplayResize (ulong aWidth, ulong aHeight); 116 116 117 117 #ifdef VBOX_WITH_VIDEOHWACCEL
Note:
See TracChangeset
for help on using the changeset viewer.