VirtualBox

Changeset 20029 in vbox for trunk/src


Ignore:
Timestamp:
May 26, 2009 12:09:31 PM (16 years ago)
Author:
vboxsync
Message:

crOpenGL: hack for google earth view size, turned off

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Additions/common/crOpenGL/load.c

    r18088 r20029  
    7474static SwapBuffersFunc_t origSwapBuffers;
    7575static DrawBufferFunc_t origDrawBuffer;
     76static ScissorFunc_t origScissor;
    7677
    7778static void stubCheckWindowState(void)
    7879{
    79     int winX, winY;
    80     unsigned int winW, winH;
    8180    WindowInfo *window;
    8281    bool bForceUpdate = false;
     
    8887
    8988    window = stub.currentContext->currentDrawable;
    90 
    91     stubGetWindowGeometry( window, &winX, &winY, &winW, &winH );
    9289
    9390#ifdef WINDOWS
     
    148145{
    149146    stubCheckWindowState();
    150     /* call the original SPU glViewport function */
     147    /* call the original SPU glViewport function */ 
    151148    origViewport(x, y, w, h);
     149
     150    /*
     151    {
     152        int winX, winY;
     153        unsigned int winW, winH;
     154        WindowInfo *pWindow;
     155        pWindow = stub.currentContext->currentDrawable;
     156        stubGetWindowGeometry(pWindow, &winX, &winY, &winW, &winH);
     157        origViewport(0, 0, winW, winH);
     158    }
     159    */
    152160}
    153161
     
    162170    stubCheckWindowState();
    163171    origDrawBuffer(buf);
     172}
     173
     174static void SPU_APIENTRY trapScissor(GLint x, GLint y, GLsizei w, GLsizei h)
     175{
     176    origScissor(x, y, w, h);
     177
     178    /*
     179    {
     180        int winX, winY;
     181        unsigned int winW, winH;
     182        WindowInfo *pWindow;
     183        pWindow = stub.currentContext->currentDrawable;
     184        stubGetWindowGeometry(pWindow, &winX, &winY, &winW, &winH);
     185        origScissor(0, 0, winW, winH);
     186    }
     187    */
    164188}
    165189
     
    179203        origSwapBuffers = stub.spuDispatch.SwapBuffers;
    180204        origDrawBuffer = stub.spuDispatch.DrawBuffer;
     205        origScissor = stub.spuDispatch.Scissor;
    181206        stub.spuDispatch.Clear = trapClear;
    182207        stub.spuDispatch.Viewport = trapViewport;
     208        /*stub.spuDispatch.Scissor = trapScissor;*/
    183209        /*stub.spuDispatch.SwapBuffers = trapSwapBuffers;
    184210        stub.spuDispatch.DrawBuffer = trapDrawBuffer;*/
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