- Timestamp:
- Aug 24, 2012 7:30:14 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
r38311 r42982 33 33 #include "UIMachineLogic.h" 34 34 #include "VBoxUtils.h" 35 #include "UISession.h" 35 36 36 37 #endif /* !VBOX_WITH_PRECOMPILED_HEADERS */ … … 48 49 : UIFrameBuffer(pMachineView) 49 50 , m_pMachineLogic(pMachineView->machineLogic()) 51 , m_fUsesGuestVRAM(false) 50 52 , m_pDataAddress(NULL) 51 53 , m_pBitmapData(NULL) … … 155 157 void UIFrameBufferQuartz2D::paintEvent(QPaintEvent *aEvent) 156 158 { 159 /* If the machine is NOT in 'running' state, 160 * the link between framebuffer and video memory 161 * is broken, we should go fallback now... */ 162 if (m_fUsesGuestVRAM && !m_pMachineView->uisession()->isRunning()) 163 { 164 /* Simulate fallback through fake resize-event: */ 165 UIResizeEvent event(FramebufferPixelFormat_Opaque, NULL, 0, 0, 640, 480); 166 resizeEvent(&event); 167 } 168 157 169 /* For debugging /Developer/Applications/Performance Tools/Quartz 158 170 * Debug.app is a nice tool to see which parts of the screen are … … 404 416 && aEvent->bitsPerPixel() == 32) 405 417 { 418 m_fUsesGuestVRAM = true; 406 419 // printf ("VRAM\n"); 407 420 /* Create the image copy of the framebuffer */ … … 415 428 else 416 429 { 430 m_fUsesGuestVRAM = false; 417 431 remind = true; 418 432 // printf ("No VRAM\n"); -
trunk/src/VBox/Frontends/VirtualBox/src/runtime/UIFrameBufferQuartz2D.h
r35215 r42982 61 61 62 62 UIMachineLogic *m_pMachineLogic; 63 bool m_fUsesGuestVRAM; 63 64 uchar *m_pDataAddress; 64 65 void *m_pBitmapData;
Note:
See TracChangeset
for help on using the changeset viewer.