VirtualBox

Ignore:
Timestamp:
Jun 9, 2016 7:48:13 AM (9 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
107945
Message:

VBoxTray: fixed regression from r107867: do not re-enable disabled screens

File:
1 edited

Legend:

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

    r61548 r61603  
    14581458        winEr = NO_ERROR;
    14591459
    1460         if (i == iChangedMode && fEnable)
     1460        /* Whether the current display should be enabled. */
     1461        BOOL fCurrentEnable = i == iChangedMode?
     1462                                 fEnable:
     1463                                 RT_BOOL(paDisplayDevices[i].StateFlags & DISPLAY_DEVICE_ACTIVE);
     1464
     1465        if (i == iChangedMode && fCurrentEnable)
    14611466        {
    14621467            RTRECTSIZE Size;
     
    14731478        if (winEr == NO_ERROR)
    14741479        {
    1475             winEr = vboxDispIfResizePerform(pIf, i, fEnable, fExtDispSup, paDisplayDevices, paDeviceModes, cDevModes);
     1480            winEr = vboxDispIfResizePerform(pIf, i, fCurrentEnable, fExtDispSup, paDisplayDevices, paDeviceModes, cDevModes);
    14761481
    14771482            LogFunc(("vboxDispIfResizePerform returned %d\n", winEr));
     
    14791484            if (winEr == ERROR_RETRY)
    14801485            {
    1481                 VBoxRrRetrySchedule(pIf, i, fEnable, fExtDispSup, paDisplayDevices, paDeviceModes, cDevModes);
     1486                VBoxRrRetrySchedule(pIf, i, fCurrentEnable, fExtDispSup, paDisplayDevices, paDeviceModes, cDevModes);
    14821487
    14831488                winEr = NO_ERROR;
Note: See TracChangeset for help on using the changeset viewer.

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