VirtualBox

Ignore:
Timestamp:
Aug 16, 2018 6:54:12 PM (6 years ago)
Author:
vboxsync
Message:

VMMDev: multimonitor resize for Windows guests, bugref:8444

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Additions/WINNT/VBoxTray/VBoxDispIf.cpp

    r72618 r73724  
    17051705    VBOXDISPIF_OP Op;
    17061706    DWORD winEr = ERROR_SUCCESS;
    1707     uint32_t id;
     1707    uint32_t i;
    17081708    int iPath;
    17091709
    17101710    vboxDispIfOpBegin(pIf, &Op);
    17111711
    1712     for (id = 0; id < cDispDef; ++id)
    1713     {
    1714         pDispDef = &paDispDef[id];
     1712    for (i = 0; i < cDispDef; ++i)
     1713    {
     1714        pDispDef = &paDispDef[i];
    17151715
    17161716        if (!(pDispDef->fDisplayFlags & VMMDEV_DISPLAY_DISABLED) &&
     
    17231723            Size.cy = pDispDef->cy;
    17241724
    1725             vboxDispIfUpdateModesWDDM(&Op, id, &Size);
     1725            vboxDispIfUpdateModesWDDM(&Op, pDispDef->idDisplay, &Size);
    17261726        }
    17271727    }
     
    17331733    vboxDispIfWddmDcCreate(&DispCfg, QDC_ALL_PATHS);
    17341734
    1735     for (id = 0; id < cDispDef; ++id)
     1735    for (i = 0; i < cDispDef; ++i)
    17361736    {
    17371737        DISPLAYCONFIG_PATH_INFO *pPathInfo;
    17381738
    1739         pDispDef = &paDispDef[id];
    1740         iPath = vboxDispIfWddmDcSearchPath(&DispCfg, id, id);
     1739        pDispDef = &paDispDef[i];
     1740        iPath = vboxDispIfWddmDcSearchPath(&DispCfg, pDispDef->idDisplay, pDispDef->idDisplay);
    17411741
    17421742        if (iPath < 0)
    17431743        {
    1744             WARN(("VBoxTray:(WDDM) Unexpected iPath(%d) between src(%d) and tgt(%d)\n", iPath, id, id));
     1744            WARN(("VBoxTray:(WDDM) Unexpected iPath(%d) between src(%d) and tgt(%d)\n", iPath, pDispDef->idDisplay, pDispDef->idDisplay));
    17451745            continue;
    17461746        }
     
    18271827
    18281828                *pPathInfo = DispCfg.pPathInfoArray[0];
    1829                 pPathInfo->sourceInfo.id = id;
    1830                 pPathInfo->targetInfo.id = id;
     1829                pPathInfo->sourceInfo.id = pDispDef->idDisplay;
     1830                pPathInfo->targetInfo.id = pDispDef->idDisplay;
    18311831
    18321832                pModeInfoNew = &pModeInfo[DispCfg.cModeInfoArray];
    18331833                pModeInfoNew->infoType = DISPLAYCONFIG_MODE_INFO_TYPE_SOURCE;
    1834                 pModeInfoNew->id = id;
     1834                pModeInfoNew->id = pDispDef->idDisplay;
    18351835                pModeInfoNew->adapterId = pModeInfo[0].adapterId;
    18361836                pSrcMode = &pModeInfoNew->sourceMode;
     
    18441844                pModeInfoNew++;
    18451845                pModeInfoNew->infoType = DISPLAYCONFIG_MODE_INFO_TYPE_TARGET;
    1846                 pModeInfoNew->id = id;
     1846                pModeInfoNew->id = pDispDef->idDisplay;
    18471847                pModeInfoNew->adapterId = pModeInfo[0].adapterId;
    18481848                pModeInfoNew->targetMode = pModeInfo[0].targetMode;
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