Changeset 22144 in vbox for trunk/src/VBox/Frontends/VirtualBox
- Timestamp:
- Aug 10, 2009 7:41:53 PM (15 years ago)
- Location:
- trunk/src/VBox/Frontends/VirtualBox
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VirtualBox/include/VBoxGlobal.h
r22143 r22144 753 753 754 754 #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; } 756 757 #endif 757 758 -
trunk/src/VBox/Frontends/VirtualBox/src/VBoxConsoleWnd.cpp
r21938 r22144 807 807 AssertWrapperOk (csession); 808 808 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 809 819 console = new VBoxConsoleView (this, cconsole, mode, centralWidget()); 810 820 static_cast <QGridLayout*> (centralWidget()->layout())->addWidget (console, 1, 1, Qt::AlignVCenter | Qt::AlignHCenter); 811 812 CMachine cmachine = csession.GetMachine();813 821 814 822 /* Mini toolbar */ -
trunk/src/VBox/Frontends/VirtualBox/src/VBoxGlobal.cpp
r22143 r22144 546 546 #endif 547 547 } 548 #ifdef VBOX_WITH_VIDEOHWACCEL 549 /* temporary hack to enable QGL mode */ 550 mode = VBoxDefs::QGLMode; 551 #endif 548 552 549 return mode; 553 554 550 } 555 551
Note:
See TracChangeset
for help on using the changeset viewer.