VirtualBox

Ignore:
Timestamp:
Jun 7, 2016 10:50:09 AM (9 years ago)
Author:
vboxsync
Message:

VBoxTray: applied r107675 from 5.0: retain positions of all guest displays after a mode change.

File:
1 edited

Legend:

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

    r60531 r61530  
    14421442     * "the D3DKMTInvalidateActiveVidPn function always resets a multimonitor desktop to the default configuration".
    14431443     */
     1444    for (uint32_t i = 0; i < cDevModes; ++i)
    14441445    {
    14451446        winEr = NO_ERROR;
    14461447
    1447         if (fEnable)
     1448        if (i == iChangedMode && fEnable)
    14481449        {
    14491450            RTRECTSIZE Size;
     
    14571458        if (winEr == NO_ERROR)
    14581459        {
    1459             winEr = vboxDispIfResizePerform(pIf, iChangedMode, fEnable, fExtDispSup, paDisplayDevices, paDeviceModes, cDevModes);
     1460            winEr = vboxDispIfResizePerform(pIf, i, fEnable, fExtDispSup, paDisplayDevices, paDeviceModes, cDevModes);
    14601461
    14611462            if (winEr == ERROR_RETRY)
    14621463            {
    1463                 VBoxRrRetrySchedule(pIf, iChangedMode, fEnable, fExtDispSup, paDisplayDevices, paDeviceModes, cDevModes);
     1464                VBoxRrRetrySchedule(pIf, i, fEnable, fExtDispSup, paDisplayDevices, paDeviceModes, cDevModes);
    14641465                /* just pretend everything is fine so far */
    14651466                winEr = NO_ERROR;
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