Changeset 49128 in vbox for trunk/src/VBox/Frontends
- Timestamp:
- Oct 16, 2013 11:35:35 AM (11 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
r47510 r49128 50 50 UIFrameBufferQuartz2D::UIFrameBufferQuartz2D(UIMachineView *pMachineView) 51 51 : UIFrameBuffer(pMachineView) 52 , m_pMachineLogic(pMachineView->machineLogic())53 52 , m_fUsesGuestVRAM(false) 54 53 , m_pDataAddress(NULL) … … 251 250 252 251 /* We handle the seamless mode as a special case. */ 253 if (m_pMachine Logic->visualStateType() == UIVisualStateType_Seamless)252 if (m_pMachineView->machineLogic()->visualStateType() == UIVisualStateType_Seamless) 254 253 { 255 254 /* Determine current visible region: */ … … 346 345 } 347 346 } 348 else if ( m_pMachine Logic->visualStateType() == UIVisualStateType_Scale347 else if ( m_pMachineView->machineLogic()->visualStateType() == UIVisualStateType_Scale 349 348 && m_scaledSize.isValid()) 350 349 { … … 498 497 } 499 498 500 #ifdef VBOX_WITH_VIDEOHWACCEL501 void UIFrameBufferQuartz2D::setView(UIMachineView *pView)502 {503 if (pView)504 m_pMachineLogic = pView->machineLogic();505 506 UIFrameBuffer::setView(pView);507 }508 #endif509 510 499 #endif /* VBOX_GUI_USE_QUARTZ2D */ 511 500 -
trunk/src/VBox/Frontends/VirtualBox/src/runtime/UIFrameBufferQuartz2D.h
r47067 r49128 51 51 void paintEvent(QPaintEvent *pEvent); 52 52 53 #ifdef VBOX_WITH_VIDEOHWACCEL54 void setView(UIMachineView *pView);55 #endif56 57 53 private: 58 54 59 55 void clean(bool fPreserveRegions); 60 56 61 UIMachineLogic *m_pMachineLogic;62 57 bool m_fUsesGuestVRAM; 63 58 uchar *m_pDataAddress; … … 88 83 * This is operated with atomic cmpxchg and atomic xchg. */ 89 84 RegionRects * volatile mRegionUnused; 90 91 85 }; 92 86
Note:
See TracChangeset
for help on using the changeset viewer.