VirtualBox

Changeset 56730 in vbox for trunk/src/VBox


Ignore:
Timestamp:
Jul 1, 2015 1:12:50 PM (10 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
101376
Message:

FE/Qt: 7844: Store actual guest-screen size-hint(s) instead of desired; that covers more side-cases but excludes hints which were not processed by the guest by some reason.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Frontends/VirtualBox/src/runtime/UIMachineView.cpp

    r56704 r56730  
    248248                               uisession()->isScreenVisible(screenId()),
    249249                               false, 0, 0, size.width(), size.height(), 0);
    250 
    251     /* If we are in normal or scaled mode, remember the size sent for the next
    252      * time we have to restore one of those two modes: */
    253     if (!isFullscreenOrSeamless())
    254         storeGuestSizeHint(size);
    255250}
    256251
     
    326321     * the viewport through IFramebuffer::NotifyUpdate): */
    327322    display().InvalidateAndUpdateScreen(m_uScreenId);
     323
     324    /* If we are in normal or scaled mode and if GA are active,
     325     * remember the guest-screen size to be able to restore it when necessary: */
     326    if (!isFullscreenOrSeamless() && uisession()->isGuestSupportsGraphics())
     327        storeGuestSizeHint(QSize(iWidth, iHeight));
    328328
    329329    LogRelFlow(("GUI: UIMachineView::sltHandleNotifyChange: Complete for Screen=%d, Size=%dx%d\n",
Note: See TracChangeset for help on using the changeset viewer.

© 2025 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette