VirtualBox

Changeset 32585 in vbox for trunk/src/VBox/Devices/Graphics


Ignore:
Timestamp:
Sep 17, 2010 10:04:55 AM (14 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
65979
Message:

DevVGA: fixed redraw problems if a secondary screen is left of the primary screen

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Devices/Graphics/DevVGA_VBVA.cpp

    r32241 r32585  
    333333        int32_t yBottom;
    334334    } dirtyRect;
    335     memset(&dirtyRect, 0, sizeof(dirtyRect));
     335    RT_ZERO(dirtyRect);
    336336
    337337    bool fUpdate = false; /* Whether there were any updates. */
     338    bool fDirtyEmpty = true;
    338339
    339340    for (;;)
     
    378379
    379380            /* Collect all rects into one. */
    380             if (dirtyRect.xRight == 0)
     381            if (fDirtyEmpty)
    381382            {
    382383                /* This is the first rectangle to be added. */
     
    385386                dirtyRect.xRight  = xRight;
    386387                dirtyRect.yBottom = yBottom;
     388                fDirtyEmpty       = false;
    387389            }
    388390            else
     
    416418    if (fUpdate)
    417419    {
    418         if(dirtyRect.xRight)
     420        if (dirtyRect.xRight - dirtyRect.xLeft)
    419421        {
    420422            pVGAState->pDrv->pfnVBVAUpdateEnd (pVGAState->pDrv, uScreenId, dirtyRect.xLeft, dirtyRect.yTop,
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