VirtualBox

Changeset 50258 in vbox for trunk


Ignore:
Timestamp:
Jan 28, 2014 2:16:08 PM (11 years ago)
Author:
vboxsync
Message:

crOpenGL: resize bugfixes

Location:
trunk/src/VBox/HostServices/SharedOpenGL/crserverlib
Files:
2 edited

Legend:

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

    r50217 r50258  
    28452845    CRScreenViewportInfo *pViewport;
    28462846    RTRECT NewRect;
    2847     GLboolean fChanged;
    28482847    int rc;
    28492848
     
    28622861
    28632862    pViewport = &cr_server.screenVieport[sIndex];
    2864 
    2865     fChanged = !!memcmp(&NewRect, &pViewport->Rect, sizeof (NewRect));
    2866     if (!fChanged)
    2867     {
    2868         crDebug("crVBoxServerSetScreenViewport: no changes");
    2869         return VINF_SUCCESS;
    2870     }
    2871 
     2863    /*always do viewport updates no matter whether the rectangle actually changes,
     2864     * this is needed to ensure window is adjusted properly on OSX */
    28722865    pViewport->Rect = NewRect;
    28732866    rc = CrPMgrViewportUpdate((uint32_t)sIndex);
  • trunk/src/VBox/HostServices/SharedOpenGL/crserverlib/server_presenter.cpp

    r50250 r50258  
    15821582
    15831583        LOG(("CrWIN: Pos [%d ; %d]", x, y));
    1584 
    1585         if (x != mxPos || y != myPos)
     1584//      always do WindowPosition to ensure window is adjusted properly
     1585//        if (x != mxPos || y != myPos)
    15861586        {
    15871587            mxPos = x;
     
    19051905        }
    19061906
    1907         if (pViewportRect->xLeft != mViewportRect.xLeft || pViewportRect->yTop != mViewportRect.yTop)
     1907// always call SetPosition to ensure window is adjustep properly
     1908//        if (pViewportRect->xLeft != mViewportRect.xLeft || pViewportRect->yTop != mViewportRect.yTop)
    19081909        {
    19091910            const RTRECT* pRect = getRect();
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