VirtualBox

Changeset 52904 in vbox


Ignore:
Timestamp:
Sep 30, 2014 5:41:01 PM (10 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
96335
Message:

FE/Qt: Runtime UI rework/cleanup for 7115 (part #3): Retina odd/even fix seems not necessary anymore.

File:
1 edited

Legend:

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

    r52903 r52904  
    274274STDMETHODIMP UIFrameBuffer::NotifyUpdate(ULONG uX, ULONG uY, ULONG uWidth, ULONG uHeight)
    275275{
    276     /* Retina screens with physical-to-logical scaling requires
    277      * odd/even pixel updates to be taken into account,
    278      * otherwise we have artifacts on the borders of incoming rectangle. */
    279     uX = qMax(0, (int)uX - 1);
    280     uY = qMax(0, (int)uY - 1);
    281     uWidth = qMin(m_iWidth, (int)uWidth + 2);
    282     uHeight = qMin(m_iHeight, (int)uHeight + 2);
    283 
    284276    /* Lock access to frame-buffer: */
    285277    lock();
     
    317309                                              ComSafeArrayIn(BYTE, image))
    318310{
    319     /* Retina screens with physical-to-logical scaling requires
    320      * odd/even pixel updates to be taken into account,
    321      * otherwise we have artifacts on the borders of incoming rectangle. */
    322     uX = qMax(0, (int)uX - 1);
    323     uY = qMax(0, (int)uY - 1);
    324     uWidth = qMin(m_iWidth, (int)uWidth + 2);
    325     uHeight = qMin(m_iHeight, (int)uHeight + 2);
    326 
    327311    /* Wrapping received data: */
    328312    com::SafeArray<BYTE> imageData(ComSafeArrayInArg(image));
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