VirtualBox

儲存庫 vbox 的更動 37189


忽略:
時間撮記:
2011-5-23 下午08:50:29 (14 年 以前)
作者:
vboxsync
訊息:

wddm: more VidPn fixes & cleanup

位置:
trunk/src/VBox/Additions/WINNT/Graphics/Video/mp/wddm
檔案:
修改 3 筆資料

圖例:

未更動
新增
刪除
  • trunk/src/VBox/Additions/WINNT/Graphics/Video/mp/wddm/VBoxMPVidPn.cpp

    r37188 r37189  
    742742NTSTATUS vboxVidPnCheckAddMonitorModes(PVBOXMP_DEVEXT pDevExt,
    743743        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)
    745745{
    746746    NTSTATUS Status;
     
    776776                                pRes,
    777777                                enmOrigin,
    778                                 FALSE//i == (uint32_t)iPreferred
     778                                FALSE
    779779                                );
    780780                        Assert(Status == STATUS_SUCCESS);
  • trunk/src/VBox/Additions/WINNT/Graphics/Video/mp/wddm/VBoxMPVidPn.h

    r37188 r37189  
    129129NTSTATUS vboxVidPnCheckAddMonitorModes(PVBOXMP_DEVEXT pDevExt,
    130130        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);
    132132
    133133NTSTATUS 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  
    36423642        VIDEO_MODE_INFORMATION *pResModes = NULL;
    36433643        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)
    36453646        {
    36463647            /* @todo: check that we actually need the current source->target */
     
    36503651            Resolution.cx = pModeInfo->VisScreenWidth;
    36513652            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);
    36533654            Assert(Status == STATUS_SUCCESS);
    36543655            if (Status != STATUS_SUCCESS)
     
    36573658                break;
    36583659            }
    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;
    36603669            int32_t iPreferableResMode;
    36613670            uint32_t cActualResModes;
注意: 瀏覽 TracChangeset 來幫助您使用更動檢視器

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette