VirtualBox

Ignore:
Timestamp:
Jul 22, 2016 9:44:49 AM (8 years ago)
Author:
vboxsync
Message:

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

File:
1 edited

Legend:

Unmodified
Added
Removed
  • 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;
Note: See TracChangeset for help on using the changeset viewer.

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