Changeset 30752 in vbox
- Timestamp:
- Jul 8, 2010 10:31:34 PM (15 years ago)
- Location:
- trunk/src/VBox/Frontends/VirtualBox/src/runtime
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VirtualBox/src/runtime/UIMachineView.cpp
r30673 r30752 209 209 } 210 210 211 void UIMachineView::prepare FrameBuffer()211 void UIMachineView::prepareViewport() 212 212 { 213 213 /* Prepare viewport: */ … … 226 226 #endif /* !VBOX_GUI_USE_QGLFB */ 227 227 setViewport(pViewport); 228 229 CDisplay display = session().GetConsole().GetDisplay(); 230 Assert(!display.isNull()); 231 m_pFrameBuffer = NULL; 232 228 } 229 230 void UIMachineView::prepareFrameBuffer() 231 { 232 /* Prepare frame-buffer depending on render-mode: */ 233 233 switch (vboxGlobal().vmRenderMode()) 234 234 { … … 345 345 break; 346 346 } 347 348 /* If frame-buffer was prepared: */ 347 349 if (m_pFrameBuffer) 348 350 { 351 /* Prepare display: */ 352 CDisplay display = session().GetConsole().GetDisplay(); 353 Assert(!display.isNull()); 349 354 #ifdef VBOX_WITH_VIDEOHWACCEL 350 355 CFramebuffer fb(NULL); … … 352 357 { 353 358 LONG XOrigin, YOrigin; 354 /* check if the framebuffer is already assigned 355 * in this case we do not need to re-assign it 356 * neither do we need to AddRef */ 359 /* Check if the framebuffer is already assigned; 360 * in this case we do not need to re-assign it neither do we need to AddRef. */ 357 361 display.GetFramebuffer(m_uScreenId, fb, XOrigin, YOrigin); 358 362 } … … 362 366 m_pFrameBuffer->AddRef(); 363 367 } 364 365 /* always perform SetFramebuffer to ensure 3D gets notified */ 368 /* Always perform SetFramebuffer to ensure 3D gets notified: */ 366 369 display.SetFramebuffer(m_uScreenId, CFramebuffer(m_pFrameBuffer)); 367 370 } -
trunk/src/VBox/Frontends/VirtualBox/src/runtime/UIMachineView.h
r30637 r30752 87 87 88 88 /* Prepare routines: */ 89 virtual void prepareViewport(); 89 90 virtual void prepareFrameBuffer(); 90 91 virtual void prepareCommon(); … … 99 100 //virtual void cleanupCommon() {} 100 101 virtual void cleanupFrameBuffer(); 102 //virtual void cleanupViewport(); 101 103 102 104 /* Protected getters: */ -
trunk/src/VBox/Frontends/VirtualBox/src/runtime/fullscreen/UIMachineViewFullscreen.cpp
r30674 r30752 58 58 loadMachineViewSettings(); 59 59 60 /* Prepare viewport: */ 61 prepareViewport(); 62 60 63 /* Prepare frame buffer: */ 61 64 prepareFrameBuffer(); -
trunk/src/VBox/Frontends/VirtualBox/src/runtime/normal/UIMachineViewNormal.cpp
r30709 r30752 52 52 /* Load machine view settings: */ 53 53 loadMachineViewSettings(); 54 55 /* Prepare viewport: */ 56 prepareViewport(); 54 57 55 58 /* Prepare frame buffer: */ -
trunk/src/VBox/Frontends/VirtualBox/src/runtime/seamless/UIMachineViewSeamless.cpp
r30709 r30752 56 56 loadMachineViewSettings(); 57 57 58 /* Prepare viewport: */ 59 prepareViewport(); 60 58 61 /* Prepare frame buffer: */ 59 62 prepareFrameBuffer();
Note:
See TracChangeset
for help on using the changeset viewer.