VirtualBox

vbox的更動 62415 路徑 trunk/src/VBox/Additions


忽略:
時間撮記:
2016-7-22 上午09:44:49 (8 年 以前)
作者:
vboxsync
訊息:

WDDM: VBoxTray: bugref:8440: reset target info for SetDisplayConfig.

檔案:
修改 1 筆資料

圖例:

未更動
新增
刪除
  • trunk/src/VBox/Additions/WINNT/VBoxTray/VBoxDispIf.cpp

    r61944 r62415  
    356356    pCfg->pPathInfoArray[idx].targetInfo.modeInfoIdx = DISPLAYCONFIG_PATH_MODE_IDX_INVALID;
    357357
     358    /* "A refresh rate with both the numerator and denominator set to zero indicates that
     359     * the caller does not specify a refresh rate and the operating system should use
     360     * the most optimal refresh rate available. For this case, in a call to the SetDisplayConfig
     361     * function, the caller must set the scanLineOrdering member to the
     362     * DISPLAYCONFIG_SCANLINE_ORDERING_UNSPECIFIED value; otherwise, SetDisplayConfig fails."
     363     *
     364     * If a refresh rate is set to a value, then the resize will fail if miniport driver
     365     * does not support VSync, i.e. with display-only driver on Win8+ (@bugref{8440}).
     366     */
     367    pCfg->pPathInfoArray[idx].targetInfo.refreshRate.Numerator = 0;
     368    pCfg->pPathInfoArray[idx].targetInfo.refreshRate.Denominator = 0;
     369    pCfg->pPathInfoArray[idx].targetInfo.scanLineOrdering = DISPLAYCONFIG_SCANLINE_ORDERING_UNSPECIFIED;
     370
     371    /* Make sure that "The output can be forced on this target even if a monitor is not detected." */
     372    pCfg->pPathInfoArray[idx].targetInfo.targetAvailable = TRUE;
     373    pCfg->pPathInfoArray[idx].targetInfo.statusFlags |= DISPLAYCONFIG_TARGET_FORCIBLE;
     374
    358375    if (fEnable)
    359376        pCfg->pPathInfoArray[idx].flags |= DISPLAYCONFIG_PATH_ACTIVE;
注意: 瀏覽 TracChangeset 來幫助您使用更動檢視器

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