VirtualBox

Ignore:
Timestamp:
Sep 20, 2010 7:43:03 PM (14 years ago)
Author:
vboxsync
Message:

wddm: auto-resize (w/o Aero) fix

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

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Additions/WINNT/Graphics/Miniport/VBoxVideo.cpp

    r32622 r32650  
    29662966    ULONG cbLine = VBOXWDDM_ROUNDBOUND(((width * bpp) + 7) / 8, 4);
    29672967    ULONG xOffset = offDisplay % cbLine;
     2968    if (bpp == 4)
     2969    {
     2970        xOffset <<= 1;
     2971    }
     2972    else
     2973    {
     2974        Assert(!(xOffset%((bpp + 7) >> 3)));
     2975        xOffset /= ((bpp + 7) >> 3);
     2976    }
    29682977    ULONG yOffset = offDisplay / cbLine;
    29692978    Assert(xOffset <= 0xffff);
  • trunk/src/VBox/Additions/WINNT/Graphics/Miniport/wddm/VBoxVideoMisc.cpp

    r32501 r32650  
    6969            return VBOXWDDM_HANDLE_INVALID;
    7070    }
    71     for (UINT i = pTbl->iNext2Search; ++i, i %= pTbl->cSize;)
     71    for (UINT i = pTbl->iNext2Search; ; ++i, i %= pTbl->cSize)
    7272    {
    7373        Assert(i < pTbl->cSize);
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