VirtualBox

Changeset 26858 in vbox for trunk/src


Ignore:
Timestamp:
Feb 26, 2010 2:47:15 PM (15 years ago)
Author:
vboxsync
Message:

FE/Qt4: new core: the view must be configured before the framebuffers are created

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Frontends/VirtualBox/src/runtime/UIMachineView.cpp

    r26823 r26858  
    365365void UIMachineView::prepareFrameBuffer()
    366366{
     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
    367385    CDisplay display = session().GetConsole().GetDisplay();
    368386    Assert(!display.isNull());
     
    453471    ::memset(m_pressedKeys, 0, sizeof(m_pressedKeys));
    454472
    455     /* Prepare viewport: */
    456 #ifdef VBOX_GUI_USE_QGL
    457     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 #endif
    465         default:
    466             pViewport = new VBoxViewport(this);
    467     }
    468 #else
    469     VBoxViewport *pViewport = new VBoxViewport(this);
    470 #endif
    471     setViewport(pViewport);
    472 
    473473    /* Setup palette: */
    474474    QPalette palette(viewport()->palette());
Note: See TracChangeset for help on using the changeset viewer.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette