Changeset 61726 in vbox
- Timestamp:
- Jun 15, 2016 4:51:21 PM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VirtualBox/src/runtime/fullscreen/UIMachineWindowFullscreen.cpp
r61720 r61726 337 337 if (vboxGlobal().osRelease() <= MacOSXRelease_Lion) 338 338 resize(workingArea.size()); 339 /* Resize window to the appropriate size on ML and next 340 * only if that screen has no own user-space: */ 339 /* Resize window to the appropriate size on ML and next if it's screen has no own user-space: */ 341 340 else if (!pFullscreenLogic->screensHaveSeparateSpaces() && m_uScreenId != 0) 342 341 resize(workingArea.size()); … … 351 350 geo = QRect(QPoint(0, 0), QSize(pFrameBuffer->width(), pFrameBuffer->height()).boundedTo(workingArea.size())); 352 351 } 353 /* If frame-buffer size isnull => use default size: */352 /* If normal geometry still null => use default size: */ 354 353 if (geo.isNull()) 355 354 geo = QRect(QPoint(0, 0), QSize(800, 600).boundedTo(workingArea.size())); … … 429 428 placeOnScreen(); 430 429 431 /* ML and next using native stuff, so we can call for simple show(), 432 * Lion and previous using Qt stuff, so we should call for showFullScreen(): */ 433 const bool fSupportsNativeFullScreen = vboxGlobal().osRelease() > MacOSXRelease_Lion; 434 if (fSupportsNativeFullScreen) 435 { 436 /* Show window in normal mode: */ 430 /* Simple show() for ML and next, showFullScreen() otherwise: */ 431 if (vboxGlobal().osRelease() > MacOSXRelease_Lion) 437 432 show(); 438 }439 433 else 440 {441 /* Show window in fullscreen mode: */442 434 showFullScreen(); 443 }444 435 445 436 /* Adjust machine-view size if necessary: */
Note:
See TracChangeset
for help on using the changeset viewer.