Changeset 27426 in vbox for trunk/src/VBox
- Timestamp:
- Mar 16, 2010 8:17:12 PM (15 years ago)
- Location:
- trunk/src/VBox
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Additions/WINNT/Graphics/Miniport/wddm/VBoxVideoWddm.cpp
r27383 r27426 772 772 dfprintf(("==> "__FUNCTION__ ", context(0x%p), msg(0x%x)\n", MiniportDeviceContext, MessageNumber)); 773 773 774 vboxVDbgBreakF ();774 vboxVDbgBreakFv(); 775 775 776 776 PDEVICE_EXTENSION pDevExt = (PDEVICE_EXTENSION)MiniportDeviceContext; … … 901 901 dfprintf(("==> "__FUNCTION__ ", context(0x%p)\n", MiniportDeviceContext)); 902 902 903 vboxVDbgBreakF ();903 vboxVDbgBreakFv(); 904 904 905 905 PDEVICE_EXTENSION pDevExt = (PDEVICE_EXTENSION)MiniportDeviceContext; … … 1481 1481 dfprintf(("==> "__FUNCTION__ ", hAdapter(0x%x)\n", hAdapter)); 1482 1482 1483 vboxVDbgBreakF ();1483 vboxVDbgBreakFv(); 1484 1484 1485 1485 PVBOXWDDM_ALLOCATION pAllocation = (PVBOXWDDM_ALLOCATION)pDescribeAllocation->hAllocation; … … 1653 1653 dfprintf(("==> "__FUNCTION__ ", context(0x%x)\n", hAdapter)); 1654 1654 1655 vboxVDbgBreakF ();1655 vboxVDbgBreakFv(); 1656 1656 1657 1657 /* Value == 2 is Present … … 1695 1695 dfprintf(("==> "__FUNCTION__ ", context(0x%x)\n", hAdapter)); 1696 1696 1697 vboxVDbgBreakF ();1697 vboxVDbgBreakFv(); 1698 1698 1699 1699 PDEVICE_EXTENSION pDevExt = (PDEVICE_EXTENSION)hAdapter; … … 1768 1768 PAGED_CODE(); 1769 1769 1770 vboxVDbgBreakF ();1770 vboxVDbgBreakFv(); 1771 1771 1772 1772 NTSTATUS Status = STATUS_SUCCESS; … … 2155 2155 PAGED_CODE(); 2156 2156 2157 vboxVDbgBreakF ();2157 vboxVDbgBreakFv(); 2158 2158 2159 2159 dfprintf(("==> "__FUNCTION__ ", context(0x%x)\n", hAdapter)); … … 2222 2222 PAGED_CODE(); 2223 2223 2224 vboxVDbgBreakF ();2224 vboxVDbgBreakFv(); 2225 2225 2226 2226 dfprintf(("==> "__FUNCTION__ ", context(0x%x)\n", hAdapter)); … … 2274 2274 PDEVICE_EXTENSION pDevExt = (PDEVICE_EXTENSION)hAdapter; 2275 2275 2276 vboxVDbgBreakF ();2276 vboxVDbgBreakFv(); 2277 2277 2278 2278 const DXGK_VIDPN_INTERFACE* pVidPnInterface = NULL; … … 2665 2665 dfprintf(("==> "__FUNCTION__ ", hContext(0x%x)\n", hContext)); 2666 2666 2667 vboxVDbgBreakF ();2667 vboxVDbgBreakFv(); 2668 2668 2669 2669 NTSTATUS Status = STATUS_SUCCESS; -
trunk/src/VBox/Devices/Graphics/DevVGA_VDMA.cpp
r27389 r27426 140 140 else 141 141 { 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; 145 146 Assert(cbDstLine <= pDstDesc->pitch); 146 147 uint32_t cbDstSkip = pDstDesc->pitch; 147 148 uint8_t * pvDstStart = pvDstSurf + offDstStart; 148 149 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; 152 154 Assert(cbSrcLine <= pSrcDesc->pitch); 153 155 uint32_t cbSrcSkip = pSrcDesc->pitch;
Note:
See TracChangeset
for help on using the changeset viewer.