VirtualBox

Changeset 55834 in vbox


Ignore:
Timestamp:
May 12, 2015 6:36:22 PM (10 years ago)
Author:
vboxsync
Message:

FE/Qt: Runtime UI: Frame-buffer: Small cleanup inspired by the r100254.

File:
1 edited

Legend:

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

    r55814 r55834  
    301301    static void drawImageRect(QPainter &painter, const QImage &image, const QRect &rect,
    302302                              int iContentsShiftX, int iContentsShiftY,
    303                               ScalingOptimizationType enmScalingOptimizationType,
    304303                              bool fUseUnscaledHiDPIOutput,
    305304                              HiDPIOptimizationType hiDPIOptimizationType,
     
    13701369    drawImageRect(painter, sourceImage, paintRect,
    13711370                  m_pMachineView->contentsX(), m_pMachineView->contentsY(),
    1372                   scalingOptimizationType(), useUnscaledHiDPIOutput(),
    1373                   hiDPIOptimizationType(), backingScaleFactor());
     1371                  useUnscaledHiDPIOutput(), hiDPIOptimizationType(), backingScaleFactor());
    13741372}
    13751373
     
    14381436    drawImageRect(painter, sourceImage, paintRect,
    14391437                  m_pMachineView->contentsX(), m_pMachineView->contentsY(),
    1440                   scalingOptimizationType(), useUnscaledHiDPIOutput(),
    1441                   hiDPIOptimizationType(), backingScaleFactor());
     1438                  useUnscaledHiDPIOutput(), hiDPIOptimizationType(), backingScaleFactor());
    14421439}
    14431440
     
    15021499void UIFrameBufferPrivate::drawImageRect(QPainter &painter, const QImage &image, const QRect &rect,
    15031500                                         int iContentsShiftX, int iContentsShiftY,
    1504                                          ScalingOptimizationType enmScalingOptimizationType,
    15051501                                         bool fUseUnscaledHiDPIOutput,
    15061502                                         HiDPIOptimizationType hiDPIOptimizationType,
    15071503                                         double dBackingScaleFactor)
    15081504{
    1509     NOREF(enmScalingOptimizationType);
    1510 
    15111505    /* Calculate offset: */
    15121506    size_t offset = (rect.x() + iContentsShiftX) * image.depth() / 8 +
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