Changeset 45147 in vbox
- Timestamp:
- Mar 22, 2013 9:27:41 PM (12 years ago)
- 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 70 70 { 71 71 Log (("Quartz2D: Deleting\n")); 72 clean( );72 clean(false); 73 73 } 74 74 … … 419 419 aEvent->width(), aEvent->height()); 420 420 #endif 421 422 421 /* Clean out old stuff */ 423 clean(); 422 clean(m_width == aEvent->width() 423 && m_height == aEvent->height()); 424 424 425 425 m_width = aEvent->width(); … … 474 474 } 475 475 476 void UIFrameBufferQuartz2D::clean( )476 void UIFrameBufferQuartz2D::clean(bool fPreserveRegions) 477 477 { 478 478 if (m_image) … … 486 486 m_pBitmapData = NULL; 487 487 } 488 if ( mRegion)488 if (!fPreserveRegions && mRegion) 489 489 { 490 490 RTMemFree((void *)mRegion); 491 491 mRegion = NULL; 492 492 } 493 if ( mRegionUnused)493 if (!fPreserveRegions && mRegionUnused) 494 494 { 495 495 RTMemFree((void *)mRegionUnused); -
trunk/src/VBox/Frontends/VirtualBox/src/runtime/UIFrameBufferQuartz2D.h
r44529 r45147 58 58 private: 59 59 60 void clean( );60 void clean(bool fPreserveRegions); 61 61 62 62 UIMachineLogic *m_pMachineLogic;
Note:
See TracChangeset
for help on using the changeset viewer.