VirtualBox

Changeset 27426 in vbox for trunk/src/VBox


Ignore:
Timestamp:
Mar 16, 2010 8:17:12 PM (15 years ago)
Author:
vboxsync
Message:

wddm: graphics dev partial screen update fix

Location:
trunk/src/VBox
Files:
2 edited

Legend:

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

    r27383 r27426  
    772772    dfprintf(("==> "__FUNCTION__ ", context(0x%p), msg(0x%x)\n", MiniportDeviceContext, MessageNumber));
    773773
    774     vboxVDbgBreakF();
     774    vboxVDbgBreakFv();
    775775
    776776    PDEVICE_EXTENSION pDevExt = (PDEVICE_EXTENSION)MiniportDeviceContext;
     
    901901    dfprintf(("==> "__FUNCTION__ ", context(0x%p)\n", MiniportDeviceContext));
    902902
    903     vboxVDbgBreakF();
     903    vboxVDbgBreakFv();
    904904
    905905    PDEVICE_EXTENSION pDevExt = (PDEVICE_EXTENSION)MiniportDeviceContext;
     
    14811481    dfprintf(("==> "__FUNCTION__ ", hAdapter(0x%x)\n", hAdapter));
    14821482
    1483     vboxVDbgBreakF();
     1483    vboxVDbgBreakFv();
    14841484
    14851485    PVBOXWDDM_ALLOCATION pAllocation = (PVBOXWDDM_ALLOCATION)pDescribeAllocation->hAllocation;
     
    16531653    dfprintf(("==> "__FUNCTION__ ", context(0x%x)\n", hAdapter));
    16541654
    1655     vboxVDbgBreakF();
     1655    vboxVDbgBreakFv();
    16561656
    16571657    /* Value == 2 is Present
     
    16951695    dfprintf(("==> "__FUNCTION__ ", context(0x%x)\n", hAdapter));
    16961696
    1697     vboxVDbgBreakF();
     1697    vboxVDbgBreakFv();
    16981698
    16991699    PDEVICE_EXTENSION pDevExt = (PDEVICE_EXTENSION)hAdapter;
     
    17681768    PAGED_CODE();
    17691769
    1770     vboxVDbgBreakF();
     1770    vboxVDbgBreakFv();
    17711771
    17721772    NTSTATUS Status = STATUS_SUCCESS;
     
    21552155    PAGED_CODE();
    21562156
    2157     vboxVDbgBreakF();
     2157    vboxVDbgBreakFv();
    21582158
    21592159    dfprintf(("==> "__FUNCTION__ ", context(0x%x)\n", hAdapter));
     
    22222222    PAGED_CODE();
    22232223
    2224     vboxVDbgBreakF();
     2224    vboxVDbgBreakFv();
    22252225
    22262226    dfprintf(("==> "__FUNCTION__ ", context(0x%x)\n", hAdapter));
     
    22742274    PDEVICE_EXTENSION pDevExt = (PDEVICE_EXTENSION)hAdapter;
    22752275
    2276     vboxVDbgBreakF();
     2276    vboxVDbgBreakFv();
    22772277
    22782278    const DXGK_VIDPN_INTERFACE* pVidPnInterface = NULL;
     
    26652665    dfprintf(("==> "__FUNCTION__ ", hContext(0x%x)\n", hContext));
    26662666
    2667     vboxVDbgBreakF();
     2667    vboxVDbgBreakFv();
    26682668
    26692669    NTSTATUS Status = STATUS_SUCCESS;
  • trunk/src/VBox/Devices/Graphics/DevVGA_VDMA.cpp

    r27389 r27426  
    140140    else
    141141    {
    142         uint32_t offDstStart = pDstDesc->pitch * pDstRectl->top + pDstRectl->left;
    143         uint32_t cbDstLine = pDstDesc->bpp * pDstRectl->width;
    144         cbDstLine = !(cbDstLine & 7) ? cbDstLine >> 3 : (cbDstLine >> 3) + 1;
     142        uint32_t offDstLineStart = pDstRectl->left * pDstDesc->bpp >> 3;
     143        uint32_t offDstLineEnd = ((pDstRectl->left * pDstDesc->bpp + 7) >> 3) + ((pDstDesc->bpp * pDstRectl->width + 7) >> 3);
     144        uint32_t cbDstLine = offDstLineEnd - offDstLineStart;
     145        uint32_t offDstStart = pDstDesc->pitch * pDstRectl->top + offDstLineStart;
    145146        Assert(cbDstLine <= pDstDesc->pitch);
    146147        uint32_t cbDstSkip = pDstDesc->pitch;
    147148        uint8_t * pvDstStart = pvDstSurf + offDstStart;
    148149
    149         uint32_t offSrcStart = pSrcDesc->pitch * pSrcRectl->top + pSrcRectl->left;
    150         uint32_t cbSrcLine = pSrcDesc->bpp * pSrcRectl->width;
    151         cbSrcLine = !(cbSrcLine & 7) ? cbSrcLine >> 3 : (cbSrcLine >> 3) + 1;
     150        uint32_t offSrcLineStart = pSrcRectl->left * pSrcDesc->bpp >> 3;
     151        uint32_t offSrcLineEnd = ((pSrcRectl->left * pSrcDesc->bpp + 7) >> 3) + ((pSrcDesc->bpp * pSrcRectl->width + 7) >> 3);
     152        uint32_t cbSrcLine = offSrcLineEnd - offSrcLineStart;
     153        uint32_t offSrcStart = pSrcDesc->pitch * pSrcRectl->top + offSrcLineStart;
    152154        Assert(cbSrcLine <= pSrcDesc->pitch);
    153155        uint32_t cbSrcSkip = pSrcDesc->pitch;
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