VirtualBox

Changeset 38990 in vbox for trunk/src/VBox


Ignore:
Timestamp:
Oct 13, 2011 8:49:57 PM (13 years ago)
Author:
vboxsync
Message:

FE/Qt: this is probably how the stored console size should have been from the start.

Location:
trunk/src/VBox/Frontends/VirtualBox/src/runtime
Files:
4 edited

Legend:

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

    r38987 r38990  
    160160    AssertMsg(newSize.isValid(), ("Size should be valid!\n"));
    161161
     162    /* Store the new size */
     163    storeConsoleSize(newSize.width(), newSize.height());
    162164    /* Send new size-hint to the guest: */
    163165    session().GetConsole().GetDisplay().SetVideoModeHint(newSize.width(), newSize.height(), 0, screenId());
  • trunk/src/VBox/Frontends/VirtualBox/src/runtime/fullscreen/UIMachineViewFullscreen.cpp

    r38987 r38990  
    130130                if (pResizeEvent->size() != workingArea().size())
    131131                    break;
    132                 /* Store the new size */
    133                 storeConsoleSize(pResizeEvent->size().width(), pResizeEvent->size().height());
    134132
    135133                if (m_bIsGuestAutoresizeEnabled && uisession()->isGuestSupportsGraphics())
  • trunk/src/VBox/Frontends/VirtualBox/src/runtime/normal/UIMachineViewNormal.cpp

    r38981 r38990  
    134134                const QSize *pSize = &static_cast<QResizeEvent *>(pEvent)
    135135                                    ->size();
    136                 /* Store the new size */
    137                 storeConsoleSize(pSize->width(), pSize->height());
    138136                if (pEvent->spontaneous() && m_bIsGuestAutoresizeEnabled && uisession()->isGuestSupportsGraphics())
    139137                    QTimer::singleShot(300, this, SLOT(sltPerformGuestResize()));
  • trunk/src/VBox/Frontends/VirtualBox/src/runtime/seamless/UIMachineViewSeamless.cpp

    r38981 r38990  
    147147                if (pResizeEvent->size() != workingArea().size())
    148148                    break;
    149                 /* Store the new size to prevent unwanted resize hints being sent back: */
    150                 storeConsoleSize(pResizeEvent->size().width(), pResizeEvent->size().height());
    151149
    152150                if (uisession()->isGuestSupportsGraphics())
Note: See TracChangeset for help on using the changeset viewer.

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