VirtualBox

Ignore:
Timestamp:
Aug 10, 2009 7:41:53 PM (15 years ago)
Author:
vboxsync
Message:

video hw accel: make enable/disble flag be honored properly

Location:
trunk/src/VBox/Frontends/VirtualBox
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Frontends/VirtualBox/include/VBoxGlobal.h

    r22143 r22144  
    753753
    754754#ifdef VBOX_WITH_VIDEOHWACCEL
    755     static bool isAcceleration2DVideoAvailable() {/*TODO: */ return true;}
     755    static bool isAcceleration2DVideoAvailable() {/*TODO: */ return true; }
     756    VBoxDefs::RenderMode vmAcceleration2DVideoRenderMode() { return VBoxDefs::QGLMode; }
    756757#endif
    757758
  • trunk/src/VBox/Frontends/VirtualBox/src/VBoxConsoleWnd.cpp

    r21938 r22144  
    807807    AssertWrapperOk (csession);
    808808
     809    CMachine cmachine = csession.GetMachine();
     810
     811#ifdef VBOX_WITH_VIDEOHWACCEL
     812    /* need to force the QGL framebuffer in case 2D Video Acceleration is enabled && supported */
     813    if(cmachine.GetAccelerate2DVideoEnabled() && VBoxGlobal::isAcceleration2DVideoAvailable())
     814    {
     815        mode = vboxGlobal().vmAcceleration2DVideoRenderMode();
     816    }
     817#endif
     818
    809819    console = new VBoxConsoleView (this, cconsole, mode, centralWidget());
    810820    static_cast <QGridLayout*> (centralWidget()->layout())->addWidget (console, 1, 1, Qt::AlignVCenter | Qt::AlignHCenter);
    811 
    812     CMachine cmachine = csession.GetMachine();
    813821
    814822    /* Mini toolbar */
  • trunk/src/VBox/Frontends/VirtualBox/src/VBoxGlobal.cpp

    r22143 r22144  
    546546#endif
    547547    }
    548 #ifdef VBOX_WITH_VIDEOHWACCEL
    549     /* temporary hack to enable QGL mode */
    550     mode = VBoxDefs::QGLMode;
    551 #endif
     548
    552549    return mode;
    553 
    554550}
    555551
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