VirtualBox

Ignore:
Timestamp:
Oct 24, 2017 11:50:08 AM (7 years ago)
Author:
vboxsync
Message:

Additions/win/vboxtray: Code cleanup in VBoxDisplay service, step 2.

File:
1 edited

Legend:

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

    r69180 r69201  
    726726    }
    727727
    728 #ifdef VBOX_WITH_WDDM
    729728    if (enmDriverType == VBOXDISPLAY_DRIVER_TYPE_WDDM)
    730729    {
    731         LogFlowFunc(("Request to resize the displa\n"));
    732730        DWORD err = VBoxDispIfResizeModes(&pCtx->pEnv->dispIf, Id, fEnabled, fExtDispSup, paDisplayDevices, paDeviceModes, DevNum);
    733         if (err != ERROR_RETRY)
    734         {
    735             if (err == NO_ERROR)
    736                 LogFlowFunc(("VBoxDispIfResizeModes succeeded\n"));
    737             else
    738                LogFlowFunc(("Failure VBoxDispIfResizeModes (%d)\n", err));
    739             return FALSE;
    740         }
    741 
    742         LogFlowFunc(("ResizeDisplayDevice: RETRY requested\n"));
    743         return TRUE;
    744     }
    745 #endif
    746     /* Without this, Windows will not ask the miniport for its
    747      * mode table but uses an internal cache instead.
     731
     732        return (err == ERROR_RETRY);
     733    }
     734
     735    /* The XPDM code path goes below.
     736     * Re-requesting modes with EnumDisplaySettings forces Windows to again ask the miniport for its mode table.
    748737     */
    749738    for (i = 0; i < NumDevices; i++)
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