Changeset 22412 in vbox for trunk/src/VBox/Additions/WINNT
- Timestamp:
- Aug 24, 2009 1:02:40 PM (15 years ago)
- Location:
- trunk/src/VBox/Additions/WINNT/Graphics
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Additions/WINNT/Graphics/Display/enable.c
r20653 r22412 558 558 vDisablePalette((PPDEV) dhpdev); 559 559 560 /* Free the driver's VBVA resources. */561 vboxVbvaDisable ((PPDEV) dhpdev);562 563 560 EngFreeMem(dhpdev); 564 561 } … … 867 864 vboxVHWADisable(ppdev); 868 865 #endif 866 867 #ifdef VBOX_WITH_HGSMI 868 /* Free the driver's VBVA resources. */ 869 vboxVbvaDisable ((PPDEV) dhpdev); 870 #endif 869 871 vDisableSURF(ppdev); 870 872 } … … 959 961 vboxVHWADisable(ppdev); 960 962 #endif 963 964 #ifdef VBOX_WITH_HGSMI 965 /* Free the driver's VBVA resources. */ 966 vboxVbvaDisable ((PPDEV) dhpdev); 967 #endif 968 961 969 // 962 970 // We must give up the display. -
trunk/src/VBox/Additions/WINNT/Graphics/Display/pointer.c
r21227 r22412 164 164 DWORD returnedDataLength; 165 165 166 DISPDBG((0, "DISP bSetHardwarePointerShape SPS_ALPHA = %d\n", fl & SPS_ALPHA));166 DISPDBG((0, "DISP[%d] bSetHardwarePointerShape SPS_ALPHA = %d\n", ppdev->iDevice, fl & SPS_ALPHA)); 167 167 168 168 // We don't use the exclusion rectangle because we only support -
trunk/src/VBox/Additions/WINNT/Graphics/Display/screen.c
r22136 r22412 245 245 (uint8_t *)ppdev->pjScreen + ppdev->layout.offDisplayInformation + sizeof (HGSMIHOSTFLAGS), 246 246 ppdev->layout.cbDisplayInformation - sizeof (HGSMIHOSTFLAGS), 247 ppdev->layout.offDisplayInformation + sizeof (HGSMIHOSTFLAGS)); 247 info.areaDisplay.offBase + ppdev->layout.offDisplayInformation + sizeof (HGSMIHOSTFLAGS)); 248 249 DISPDBG((0, "VBoxDISP::vboxInitVBoxVideo: offBase 0x%x\n", 250 info.areaDisplay.offBase)); 248 251 249 252 if (RT_FAILURE (rc)) -
trunk/src/VBox/Additions/WINNT/Graphics/Display/vbox.c
r22408 r22412 345 345 HGSMIOFFSET offBuffer = HGSMIHeapBufferOffset (&ppdev->hgsmiDisplayHeap, p); 346 346 347 DISPDBG((0, "VBoxDISP::vboxHGSMIBufferSubmit: offset 0x%x\n", offBuffer)); 348 347 349 ppdev->pfnHGSMIGHCommandPost(ppdev->hMpHGSMI, offBuffer); 348 350 // ASMOutU16 (VBE_DISPI_IOPORT_INDEX, VBE_DISPI_INDEX_VBVA_GUEST); … … 389 391 BOOL bRc = FALSE; 390 392 391 DISPDBG((1, "VBoxDisp::vboxVbvaEnable called \n"));393 DISPDBG((1, "VBoxDisp::vboxVbvaEnable called ppdev %p, hgsmi %d, vbva %p\n", ppdev, ppdev->bHGSMISupported, ppdev->pVBVA)); 392 394 393 395 if (ppdev->bHGSMISupported) 394 396 { 395 397 VBVABUFFER *pVBVA = (VBVABUFFER *)((uint8_t *)ppdev->pjScreen + ppdev->layout.offVBVABuffer); 398 399 DISPDBG((1, "VBoxDisp::vboxVbvaEnable screen %p vbva off 0x%x\n", ppdev->pjScreen, ppdev->layout.offVBVABuffer)); 396 400 397 401 pVBVA->u32HostEvents = 0; … … 677 681 pScreen->i32OriginX = ppdev->ptlDevOrg.x; 678 682 pScreen->i32OriginY = ppdev->ptlDevOrg.y; 683 pScreen->u32StartOffset = 0; 679 684 pScreen->u32LineSize = ppdev->lDeltaScreen > 0?ppdev->lDeltaScreen: -ppdev->lDeltaScreen; 680 685 pScreen->u32Width = ppdev->cxScreen; -
trunk/src/VBox/Additions/WINNT/Graphics/Miniport/VBoxVideo.cpp
r22141 r22412 1565 1565 Result = vboxUpdatePointerShape(&PointerAttributes, sizeof (PointerAttributes)); 1566 1566 #else 1567 Result = vboxUpdatePointerShape(( PDEVICE_EXTENSION)HwDeviceExtension, &PointerAttributes, sizeof (PointerAttributes));1568 #endif /* VBOX_WITH_HGSMI */1567 Result = vboxUpdatePointerShape(((PDEVICE_EXTENSION)HwDeviceExtension)->pPrimary, &PointerAttributes, sizeof (PointerAttributes)); 1568 #endif /* VBOX_WITH_HGSMI */ 1569 1569 1570 1570 if (!Result) … … 1597 1597 Result = vboxUpdatePointerShape(&PointerAttributes, sizeof (PointerAttributes)); 1598 1598 #else 1599 Result = vboxUpdatePointerShape(( PDEVICE_EXTENSION)HwDeviceExtension, &PointerAttributes, sizeof (PointerAttributes));1600 #endif /* VBOX_WITH_HGSMI */1599 Result = vboxUpdatePointerShape(((PDEVICE_EXTENSION)HwDeviceExtension)->pPrimary, &PointerAttributes, sizeof (PointerAttributes)); 1600 #endif /* VBOX_WITH_HGSMI */ 1601 1601 1602 1602 if (!Result) … … 1644 1644 Result = vboxUpdatePointerShape(pPointerAttributes, RequestPacket->InputBufferLength); 1645 1645 #else 1646 Result = vboxUpdatePointerShape(( PDEVICE_EXTENSION)HwDeviceExtension, pPointerAttributes, RequestPacket->InputBufferLength);1647 #endif /* VBOX_WITH_HGSMI */1646 Result = vboxUpdatePointerShape(((PDEVICE_EXTENSION)HwDeviceExtension)->pPrimary, pPointerAttributes, RequestPacket->InputBufferLength); 1647 #endif /* VBOX_WITH_HGSMI */ 1648 1648 if (!Result) 1649 1649 dprintf(("VBoxVideo::VBoxVideoStartIO: Could not set hardware pointer -> fallback\n")); … … 2225 2225 VP_STATUS Status; 2226 2226 2227 dprintf(("VBoxVideo::VBoxVideoMapVideoMemory \n"));2227 dprintf(("VBoxVideo::VBoxVideoMapVideoMemory: fb offset 0x%x\n", DeviceExtension->ulFrameBufferOffset)); 2228 2228 2229 2229 FrameBuffer.QuadPart = VBE_DISPI_LFB_PHYSICAL_ADDRESS + DeviceExtension->ulFrameBufferOffset;
Note:
See TracChangeset
for help on using the changeset viewer.