- Timestamp:
- Feb 26, 2010 2:47:15 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VirtualBox/src/runtime/UIMachineView.cpp
r26823 r26858 365 365 void UIMachineView::prepareFrameBuffer() 366 366 { 367 /* Prepare viewport: */ 368 #ifdef VBOX_GUI_USE_QGL 369 QWidget *pViewport; 370 switch (mode()) 371 { 372 #if 0 // TODO: Create Open GL viewport! 373 case VBoxDefs::QGLMode: 374 pViewport = new VBoxGLWidget(this, this, NULL); 375 break; 376 #endif 377 default: 378 pViewport = new VBoxViewport(this); 379 } 380 #else 381 VBoxViewport *pViewport = new VBoxViewport(this); 382 #endif 383 setViewport(pViewport); 384 367 385 CDisplay display = session().GetConsole().GetDisplay(); 368 386 Assert(!display.isNull()); … … 453 471 ::memset(m_pressedKeys, 0, sizeof(m_pressedKeys)); 454 472 455 /* Prepare viewport: */456 #ifdef VBOX_GUI_USE_QGL457 QWidget *pViewport;458 switch (mode())459 {460 #if 0 // TODO: Create Open GL viewport!461 case VBoxDefs::QGLMode:462 pViewport = new VBoxGLWidget(this, this, NULL);463 break;464 #endif465 default:466 pViewport = new VBoxViewport(this);467 }468 #else469 VBoxViewport *pViewport = new VBoxViewport(this);470 #endif471 setViewport(pViewport);472 473 473 /* Setup palette: */ 474 474 QPalette palette(viewport()->palette());
Note:
See TracChangeset
for help on using the changeset viewer.