Changeset 24431 in vbox for trunk/src/VBox/Frontends/VirtualBox
- Timestamp:
- Nov 6, 2009 10:44:56 AM (15 years ago)
- Location:
- trunk/src/VBox/Frontends/VirtualBox
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VirtualBox/include/VBoxFBOverlay.h
r24171 r24431 999 999 VBoxVHWASurfaceBase * vboxGetVGASurface() { return mDisplay.getVGA(); } 1000 1000 1001 #ifdef VBOXVHWA_OLD_COORD 1001 1002 static void doSetupMatrix(const QSize & aSize, bool bInverted); 1003 #endif 1002 1004 1003 1005 void vboxDoUpdateViewport(const QRect & aRect); -
trunk/src/VBox/Frontends/VirtualBox/src/VBoxFBOverlay.cpp
r24171 r24431 1124 1124 // glEnable(GL_TEXTURE_2D); 1125 1125 glEnable(GL_TEXTURE_RECTANGLE); 1126 glDisable(GL_DEPTH_TEST); 1126 1127 1127 1128 VBOXQGL_CHECKERR( … … 2510 2511 } 2511 2512 2512 2513 #ifdef VBOXVHWA_OLD_COORD 2513 2514 void VBoxGLWidget::doSetupMatrix(const QSize & aSize, bool bInverted) 2514 2515 { … … 2536 2537 } 2537 2538 } 2539 #endif 2540 2538 2541 void VBoxGLWidget::adjustViewport(const QSize &display, const QRect &viewport) 2539 2542 { 2543 #ifdef VBOXVHWA_OLD_COORD 2540 2544 /* viewport: (viewport.x;viewport.y) (viewport.width;viewport.height)*/ 2541 2545 glViewport(-((int)display.width() + viewport.x()), … … 2543 2547 2*display.width(), 2544 2548 2*display.height()); 2549 #else 2550 glViewport(-viewport.x(), 2551 viewport.height() + viewport.y() - display.height(), 2552 display.width(), 2553 display.height()); 2554 2555 #endif 2545 2556 } 2546 2557 2547 2558 void VBoxGLWidget::setupMatricies(const QSize &display) 2548 2559 { 2560 #ifdef VBOXVHWA_OLD_COORD 2549 2561 glMatrixMode(GL_PROJECTION); 2550 2562 glLoadIdentity(); … … 2554 2566 // doSetupMatrix(bInverted ? &mRect.size() : &mTargSize.size(), bInverted); 2555 2567 doSetupMatrix(display, false); 2568 #else 2569 glMatrixMode(GL_PROJECTION); 2570 glLoadIdentity(); 2571 glOrtho(0., (GLdouble)display.width(), (GLdouble)display.height(), 0., -1., 1.); 2572 2573 glMatrixMode(GL_MODELVIEW); 2574 glLoadIdentity(); 2575 #endif 2556 2576 } 2557 2577
Note:
See TracChangeset
for help on using the changeset viewer.