Changeset 17704 in vbox for trunk/src/VBox/Additions/WINNT/Graphics
- Timestamp:
- Mar 11, 2009 3:50:37 PM (16 years ago)
- Location:
- trunk/src/VBox/Additions/WINNT/Graphics
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Additions/WINNT/Graphics/Display/drv.c
r17615 r17704 796 796 { 797 797 if (ppdev->pVBVA->u32HostEvents 798 & VB VA_F_MODE_VRDP_RESET)798 & VBOX_VIDEO_INFO_HOST_EVENTS_F_VRDP_RESET) 799 799 { 800 800 vrdpReset (ppdev); 801 801 802 802 ppdev->pVBVA->u32HostEvents &= 803 ~VB VA_F_MODE_VRDP_RESET;803 ~VBOX_VIDEO_INFO_HOST_EVENTS_F_VRDP_RESET; 804 804 } 805 805 -
trunk/src/VBox/Additions/WINNT/Graphics/Display/screen.c
r17665 r17704 69 69 ULONG iDevice; 70 70 uint32_t u32DisplayInfoSize; 71 uint32_t u32MinVBVABufferSize; 71 72 72 73 #ifndef VBOX_WITH_HGSMI … … 85 86 iDevice = DispInfo.iDevice; 86 87 u32DisplayInfoSize = DispInfo.u32DisplayInfoSize; 88 u32MinVBVABufferSize = 0; /* In old mode the buffer is not used at all. */ 87 89 } 88 90 #else … … 99 101 if (ppdev->bHGSMISupported) 100 102 { 101 /* In HGSMI mode the display driver decides about the size. */102 103 iDevice = info.iDevice; 103 u32DisplayInfoSize = VBVA_DISPLAY_INFORMATION_SIZE; 104 u32DisplayInfoSize = info.u32DisplayInfoSize; 105 u32MinVBVABufferSize = info.u32MinVBVABufferSize; 104 106 } 105 107 #endif /* VBOX_WITH_HGSMI */ … … 138 140 /* Use minimum 64K and maximum the cbFrameBuffer for the VBVA buffer. */ 139 141 for (ppdev->layout.cbVBVABuffer = ppdev->layout.cbFrameBuffer; 142 #ifndef VBOX_WITH_HGSMI 140 143 ppdev->layout.cbVBVABuffer >= 0x10000; 144 #else 145 ppdev->layout.cbVBVABuffer >= u32MinVBVABufferSize; 146 #endif /* VBOX_WITH_HGSMI */ 141 147 ppdev->layout.cbVBVABuffer /= 2) 142 148 { -
trunk/src/VBox/Additions/WINNT/Graphics/Display/vbox.c
r17665 r17704 672 672 VBVAINFOSCREEN *pScreen = (VBVAINFOSCREEN *)p; 673 673 674 pScreen->u32ViewIndex = ppdev->iDevice; 674 675 pScreen->i32OriginX = ppdev->ptlDevOrg.x; 675 676 pScreen->i32OriginY = ppdev->ptlDevOrg.y; -
trunk/src/VBox/Additions/WINNT/Graphics/Miniport/VBoxVideo.cpp
r17665 r17704 1844 1844 pInfo->areaDisplay = pDevExt->areaDisplay; 1845 1845 1846 pInfo->u32DisplayInfoSize = VBVA_DISPLAY_INFORMATION_SIZE; 1847 pInfo->u32MinVBVABufferSize = VBVA_MIN_BUFFER_SIZE; 1848 1846 1849 RequestPacket->StatusBlock->Information = sizeof(QUERYHGSMIRESULT); 1847 1850 Result = TRUE; -
trunk/src/VBox/Additions/WINNT/Graphics/Miniport/vboxioctl.h
r17583 r17704 103 103 HGSMIAREA areaDisplay; 104 104 105 /* Size of the display information area. */ 106 uint32_t u32DisplayInfoSize; 107 108 /* Minimum size of the VBAV buffer. */ 109 uint32_t u32MinVBVABufferSize; 105 110 } QUERYHGSMIRESULT; 106 111 #endif /* VBOX_WITH_HGSMI */
Note:
See TracChangeset
for help on using the changeset viewer.