Changeset 30505 in vbox for trunk/src/VBox/Additions/WINNT/Graphics
- Timestamp:
- Jun 29, 2010 2:15:34 PM (14 years ago)
- Location:
- trunk/src/VBox/Additions/WINNT/Graphics
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Additions/WINNT/Graphics/Display/wddm/VBoxDispD3D.cpp
r30483 r30505 3171 3171 #endif 3172 3172 } 3173 #if 13173 #if 0 3174 3174 else 3175 3175 #endif -
trunk/src/VBox/Additions/WINNT/Graphics/Display/wddm/VBoxDispMp.cpp
r30483 r30505 41 41 if (pIter->cbRemain) 42 42 { 43 PVBOXVIDEOCM_CMD_HDR pCur = pIter->pCur; 43 44 Assert(pIter->cbRemain >= pIter->pCur->cbCmd); 44 45 pIter->cbRemain -= pIter->pCur->cbCmd; 45 46 pIter->pCur = (PVBOXVIDEOCM_CMD_HDR)(((uint8_t*)pIter->pCur) + pIter->pCur->cbCmd); 46 return p Iter->pCur;47 return pCur; 47 48 } 48 49 return NULL; … … 100 101 if (g_VBoxDispMp.pEscapeCmd->Hdr.cbCmdsReturned) 101 102 { 102 PVBOXVIDEOCM_CMD_HDRpHdr = (PVBOXVIDEOCM_CMD_HDR)(((uint8_t*)g_VBoxDispMp.pEscapeCmd) + sizeof (VBOXDISPIFESCAPE_GETVBOXVIDEOCMCMD));103 pHdr = (PVBOXVIDEOCM_CMD_HDR)(((uint8_t*)g_VBoxDispMp.pEscapeCmd) + sizeof (VBOXDISPIFESCAPE_GETVBOXVIDEOCMCMD)); 103 104 vboxVideoCmIterInit(&g_VBoxDispMp.Iterator, pHdr, g_VBoxDispMp.pEscapeCmd->Hdr.cbCmdsReturned); 104 105 pHdr = vboxVideoCmIterNext(&g_VBoxDispMp.Iterator); -
trunk/src/VBox/Additions/WINNT/Graphics/Miniport/wddm/VBoxVideoCm.cpp
r30484 r30505 367 367 PVBOXVIDEOCM_CMD_DR pHdr; 368 368 LIST_ENTRY DetachedList; 369 PLIST_ENTRY pCurEntry ;369 PLIST_ENTRY pCurEntry = NULL; 370 370 uint32_t cbCmdsReturned = 0; 371 371 uint32_t cbRemainingCmds = 0; … … 386 386 if (!IsListEmpty(&pSession->CommandsList)) 387 387 { 388 Assert( pCurEntry == &pSession->CommandsList);388 Assert(!pCurEntry); 389 389 pHdr = VBOXCMENTRY_2_CMD(pSession->CommandsList.Blink); 390 390 Assert(pHdr->CmdHdr.cbCmd); … … 411 411 else 412 412 { 413 Assert(pCurEntry); 413 414 if (pCurEntry != &pSession->CommandsList) 414 415 { … … 429 430 430 431 pCmd->Hdr.cbCmdsReturned = 0; 431 for (pCurEntry = DetachedList.Blink; DetachedList.Blink != &DetachedList; pCurEntry = pCurEntry->Blink) 432 { 432 for (pCurEntry = DetachedList.Blink; pCurEntry != &DetachedList; pCurEntry = DetachedList.Blink) 433 { 434 pHdr = VBOXCMENTRY_2_CMD(pCurEntry); 433 435 memcpy(pvData, &pHdr->CmdHdr, pHdr->CmdHdr.cbCmd); 434 436 pvData += pHdr->CmdHdr.cbCmd; 435 437 pCmd->Hdr.cbCmdsReturned += pHdr->CmdHdr.cbCmd; 438 RemoveEntryList(pCurEntry); 436 439 vboxVideoCmCmdReleaseByHdr(pHdr); 437 440 } -
trunk/src/VBox/Additions/WINNT/Graphics/Miniport/wddm/VBoxVideoVdma.cpp
r30484 r30505 301 301 } 302 302 303 vboxVdmaDirtyRectsCalcIntersection(&pC ontext->ViewRect, pRects, &pCmd->RectsInfo);303 vboxVdmaDirtyRectsCalcIntersection(&pCurContext->ViewRect, pRects, &pCmd->RectsInfo); 304 304 if (pCmd->RectsInfo.cRects) 305 305 { … … 357 357 pDrCmd->RectsInfo.aRects[0] = *pContextRect; 358 358 pDirtyRect = &pDrCmd->RectsInfo.aRects[1]; 359 pContext->ViewRect = *pContextRect; 359 360 } 360 361 else 361 362 pDirtyRect = &pDrCmd->RectsInfo.aRects[0]; 362 363 364 Assert(pRects->cRects); 363 365 pDrCmd->fFlags.bAddVisibleRects = 1; 364 366 memcpy (pDirtyRect, pRects->aRects, sizeof (RECT) * pRects->cRects);
Note:
See TracChangeset
for help on using the changeset viewer.