VirtualBox

Ignore:
Timestamp:
Oct 2, 2007 5:08:36 PM (17 years ago)
Author:
vboxsync
Message:

Report fullscreen DdLock/DdUnlock updates in the Windows guest graphics driver.

Location:
trunk/src/VBox/Additions/WINNT/Graphics/Display
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Additions/WINNT/Graphics/Display/dd.c

    r5038 r5144  
    720720    DISPDBG((0, "%s: %p bHasRect = %d\n", __FUNCTION__, pDev, lpLock->bHasRect));
    721721   
    722     pDev->ddLock.bHasRect = lpLock->bHasRect;
     722    pDev->ddLock.bLocked = TRUE;
    723723   
    724724    if (lpLock->bHasRect)
     
    726726        DISPDBG((0, "%d,%d %dx%d\n", lpLock->rArea.left, lpLock->rArea.top, lpLock->rArea.right - lpLock->rArea.left, lpLock->rArea.bottom - lpLock->rArea.top));
    727727        pDev->ddLock.rArea = lpLock->rArea;
     728    }
     729    else
     730    {
     731        pDev->ddLock.rArea.left   = 0;
     732        pDev->ddLock.rArea.top    = 0;
     733        pDev->ddLock.rArea.right  = pDev->cxScreen;
     734        pDev->ddLock.rArea.bottom = pDev->cyScreen;
    728735    }
    729736
     
    758765    DISPDBG((0, "%s: %p\n", __FUNCTION__, pDev));
    759766
    760     if (pDev->ddLock.bHasRect)
     767    if (pDev->ddLock.bLocked)
    761768    {
    762769        DISPDBG((0, "%d,%d %dx%d\n", pDev->ddLock.rArea.left, pDev->ddLock.rArea.top, pDev->ddLock.rArea.right - pDev->ddLock.rArea.left, pDev->ddLock.rArea.bottom - pDev->ddLock.rArea.top));
     
    783790            vboxHwBufferEndUpdate (pDev);
    784791        }
    785         pDev->ddLock.bHasRect = 0;
     792        pDev->ddLock.bLocked = FALSE;
    786793    }
    787794
  • trunk/src/VBox/Additions/WINNT/Graphics/Display/driver.h

    r5038 r5144  
    134134    VIDEOMEMORY*     pvmList;
    135135    struct {
    136         DWORD bHasRect;
     136        DWORD bLocked;
    137137        RECTL rArea;
    138138    } ddLock;
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