儲存庫 vbox 的更動 37189
- 時間撮記:
- 2011-5-23 下午08:50:29 (14 年 以前)
- 位置:
- trunk/src/VBox/Additions/WINNT/Graphics/Video/mp/wddm
- 檔案:
-
- 修改 3 筆資料
圖例:
- 未更動
- 新增
- 刪除
-
trunk/src/VBox/Additions/WINNT/Graphics/Video/mp/wddm/VBoxMPVidPn.cpp
r37188 r37189 742 742 NTSTATUS vboxVidPnCheckAddMonitorModes(PVBOXMP_DEVEXT pDevExt, 743 743 D3DDDI_VIDEO_PRESENT_TARGET_ID targetId, D3DKMDT_MONITOR_CAPABILITIES_ORIGIN enmOrigin, 744 D3DKMDT_2DREGION *pResolutions, uint32_t cResolutions , int32_t iPreferred)744 D3DKMDT_2DREGION *pResolutions, uint32_t cResolutions) 745 745 { 746 746 NTSTATUS Status; … … 776 776 pRes, 777 777 enmOrigin, 778 FALSE //i == (uint32_t)iPreferred778 FALSE 779 779 ); 780 780 Assert(Status == STATUS_SUCCESS); -
trunk/src/VBox/Additions/WINNT/Graphics/Video/mp/wddm/VBoxMPVidPn.h
r37188 r37189 129 129 NTSTATUS vboxVidPnCheckAddMonitorModes(PVBOXMP_DEVEXT pDevExt, 130 130 D3DDDI_VIDEO_PRESENT_TARGET_ID targetId, D3DKMDT_MONITOR_CAPABILITIES_ORIGIN enmOrigin, 131 D3DKMDT_2DREGION *pResolutions, uint32_t cResolutions , int32_t iPreferred);131 D3DKMDT_2DREGION *pResolutions, uint32_t cResolutions); 132 132 133 133 NTSTATUS vboxVidPnCofuncModalityForPath(PVBOXVIDPNCOFUNCMODALITY pCbContext, D3DDDI_VIDEO_PRESENT_SOURCE_ID VidPnSourceId, D3DDDI_VIDEO_PRESENT_TARGET_ID VidPnTargetId); -
trunk/src/VBox/Additions/WINNT/Graphics/Video/mp/wddm/VBoxMPWddm.cpp
r37188 r37189 3642 3642 VIDEO_MODE_INFORMATION *pResModes = NULL; 3643 3643 uint32_t cResModes = 0; 3644 for (int i = 0; i < VBoxCommonFromDeviceExt(pDevExt)->cDisplays; ++i) 3644 int i; 3645 for (i = 0; i < VBoxCommonFromDeviceExt(pDevExt)->cDisplays; ++i) 3645 3646 { 3646 3647 /* @todo: check that we actually need the current source->target */ … … 3650 3651 Resolution.cx = pModeInfo->VisScreenWidth; 3651 3652 Resolution.cy = pModeInfo->VisScreenHeight; 3652 Status = vboxVidPnCheckAddMonitorModes(pDevExt, i, D3DKMDT_MCO_DRIVER, &Resolution, 1 , 0);3653 Status = vboxVidPnCheckAddMonitorModes(pDevExt, i, D3DKMDT_MCO_DRIVER, &Resolution, 1); 3653 3654 Assert(Status == STATUS_SUCCESS); 3654 3655 if (Status != STATUS_SUCCESS) … … 3657 3658 break; 3658 3659 } 3659 3660 } 3661 3662 for (i = 0; i < VBoxCommonFromDeviceExt(pDevExt)->cDisplays; ++i) 3663 { 3664 D3DKMDT_2DREGION Resolution; 3665 PVBOXWDDM_VIDEOMODES_INFO pInfo = &pInfos[i]; 3666 VIDEO_MODE_INFORMATION *pModeInfo = &pInfo->aModes[pInfo->iPreferredMode]; 3667 Resolution.cx = pModeInfo->VisScreenWidth; 3668 Resolution.cy = pModeInfo->VisScreenHeight; 3660 3669 int32_t iPreferableResMode; 3661 3670 uint32_t cActualResModes;
注意:
瀏覽 TracChangeset
來幫助您使用更動檢視器