VirtualBox

Changeset 45147 in vbox


Ignore:
Timestamp:
Mar 22, 2013 9:27:41 PM (12 years ago)
Author:
vboxsync
Message:

Quartz2D: preserve visible regions on resize event with the same screen size

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

Legend:

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

    r44910 r45147  
    7070{
    7171    Log (("Quartz2D: Deleting\n"));
    72     clean();
     72    clean(false);
    7373}
    7474
     
    419419           aEvent->width(), aEvent->height());
    420420#endif
    421 
    422421    /* Clean out old stuff */
    423     clean();
     422    clean(m_width == aEvent->width()
     423            && m_height == aEvent->height());
    424424
    425425    m_width = aEvent->width();
     
    474474}
    475475
    476 void UIFrameBufferQuartz2D::clean()
     476void UIFrameBufferQuartz2D::clean(bool fPreserveRegions)
    477477{
    478478    if (m_image)
     
    486486        m_pBitmapData = NULL;
    487487    }
    488     if (mRegion)
     488    if (!fPreserveRegions && mRegion)
    489489    {
    490490        RTMemFree((void *)mRegion);
    491491        mRegion = NULL;
    492492    }
    493     if (mRegionUnused)
     493    if (!fPreserveRegions && mRegionUnused)
    494494    {
    495495        RTMemFree((void *)mRegionUnused);
  • trunk/src/VBox/Frontends/VirtualBox/src/runtime/UIFrameBufferQuartz2D.h

    r44529 r45147  
    5858private:
    5959
    60     void clean();
     60    void clean(bool fPreserveRegions);
    6161
    6262    UIMachineLogic *m_pMachineLogic;
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