VirtualBox

Ignore:
Timestamp:
May 22, 2012 4:41:38 PM (13 years ago)
Author:
vboxsync
Message:

crOpenGL: VM window scroll handling

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/HostServices/SharedOpenGL/crserverlib/server_muralfbo.c

    r41258 r41404  
    103103    if (cr_server.screenCount<2 && !cr_server.bForceOffscreenRendering)
    104104    {
     105        CRScreenViewportInfo *pVieport = &cr_server.screenVieport[mural->screenId];
    105106        CRASSERT(cr_server.screenCount>0);
    106107
     
    108109        mural->hY = mural->gY-cr_server.screen[0].y;
    109110
    110         cr_server.head_spu->dispatch_table.WindowPosition(mural->spuWindow, mural->hX, mural->hY);
     111        cr_server.head_spu->dispatch_table.WindowPosition(mural->spuWindow, mural->hX - pVieport->x, mural->hY - pVieport->y);
    111112
    112113        return;
     
    157158    if (overlappingScreenCount<2 && !cr_server.bForceOffscreenRendering)
    158159    {
     160        CRScreenViewportInfo *pVieport = &cr_server.screenVieport[mural->screenId];
     161
    159162        if (mural->bUseFBO)
    160163        {
     
    163166        }
    164167
    165         cr_server.head_spu->dispatch_table.WindowPosition(mural->spuWindow, mural->hX, mural->hY);
     168        cr_server.head_spu->dispatch_table.WindowPosition(mural->spuWindow, mural->hX - pVieport->x, mural->hY - pVieport->y);
    166169    }
    167170    else
     
    193196        if (!mural->bUseFBO)
    194197        {
    195             cr_server.head_spu->dispatch_table.WindowPosition(mural->spuWindow, mural->hX, mural->hY);
     198            CRScreenViewportInfo *pVieport = &cr_server.screenVieport[mural->screenId];
     199
     200            cr_server.head_spu->dispatch_table.WindowPosition(mural->spuWindow, mural->hX - pVieport->x, mural->hY - pVieport->y);
    196201        }
    197202    }
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