VirtualBox

Changeset 53961 in vbox for trunk/src/VBox/Frontends


Ignore:
Timestamp:
Jan 26, 2015 12:50:51 PM (10 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
97855
Message:

FE/Qt: 6278: Support for scaled video-output: Reapply scale-factor each time VM changed state to running; corresponding cleanup.

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

Legend:

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

    r53960 r53961  
    324324    foreach(UIMachineWindow *pMachineWindow, machineWindows())
    325325        pMachineWindow->adjustMachineViewSize();
    326 }
    327 
    328 void UIMachineLogic::applyMachineWindowsScaleFactor()
    329 {
    330     /* By default, the only thing we need is to
    331      * apply machine-window scale-factor(s) if necessary: */
    332     foreach(UIMachineWindow *pMachineWindow, machineWindows())
    333         pMachineWindow->applyMachineWindowScaleFactor();
    334326}
    335327
  • trunk/src/VBox/Frontends/VirtualBox/src/runtime/UIMachineLogic.h

    r53892 r53961  
    122122    virtual void adjustMachineWindowsGeometry();
    123123
    124     /** Applies machine-window(s) scale-factor. */
    125     void applyMachineWindowsScaleFactor();
    126 
    127124    /* Wrapper to open Machine settings / Network page: */
    128125    void openNetworkSettingsDialog() { sltOpenNetworkSettingsDialog(); }
  • trunk/src/VBox/Frontends/VirtualBox/src/runtime/UIMachineView.cpp

    r53960 r53961  
    432432                     * the viewport through IFramebuffer::NotifyUpdate): */
    433433                    display().InvalidateAndUpdate();
     434                    /* Reapply machine-view scale-factor if necessary: */
     435                    applyMachineViewScaleFactor();
    434436                }
    435437            }
  • trunk/src/VBox/Frontends/VirtualBox/src/runtime/UIMachineWindow.cpp

    r53892 r53961  
    230230}
    231231
    232 void UIMachineWindow::applyMachineWindowScaleFactor()
    233 {
    234     /* We need to apply machine-view scale-factor if necessary: */
    235     machineView()->applyMachineViewScaleFactor();
    236 }
    237 
    238232#ifdef VBOX_WITH_MASKED_SEAMLESS
    239233void UIMachineWindow::setMask(const QRegion &region)
  • trunk/src/VBox/Frontends/VirtualBox/src/runtime/UIMachineWindow.h

    r53892 r53961  
    8383    /** Adjusts machine-view size to correspond current machine-window size. */
    8484    virtual void adjustMachineViewSize();
    85 
    86     /** Applies machine-window scale-factor. */
    87     void applyMachineWindowScaleFactor();
    8885
    8986#ifdef VBOX_WITH_MASKED_SEAMLESS
  • trunk/src/VBox/Frontends/VirtualBox/src/runtime/UISession.cpp

    r53892 r53961  
    281281    else
    282282        msgCenter().showModalProgressDialog(progress, machineName(), ":/progress_start_90px.png");
    283 
    284     /* Machine-window(s) scale-factor should be applied: */
    285     machineLogic()->applyMachineWindowsScaleFactor();
    286283
    287284    /* Check for progress failure: */
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