VirtualBox

Ignore:
Timestamp:
Jul 10, 2012 4:16:18 PM (12 years ago)
Author:
vboxsync
Message:

wddm: new autoresize mechanism basics

File:
1 edited

Legend:

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

    r40672 r42098  
    4141
    4242#ifdef VBOX_WITH_WDDM
    43 static bool vboxWddmReinitVideoModes(VBOXDISPLAYCONTEXT *pCtx)
    44 {
    45     VBOXDISPIFESCAPE escape = {0};
    46     escape.escapeCode = VBOXESC_REINITVIDEOMODES;
    47     DWORD err = VBoxDispIfEscape(&pCtx->pEnv->dispIf, &escape, 0);
    48     if (err != NO_ERROR)
    49     {
    50         Log((__FUNCTION__": VBoxDispIfEscape failed with err (%d)\n", err));
    51         return false;
    52     }
    53     return true;
    54 }
    55 
    5643typedef enum
    5744{
     
    173160#else
    174161                    enmType = VBOXDISPLAY_DRIVER_TYPE_XPDM;
    175                 else if (strcmp(&dispDevice.DeviceString[0], "VirtualBox Graphics Adapter (Microsoft Corporation - WDDM)") == 0)
     162                /* WDDM driver can now have multiple incarnations,
     163                 * if the driver name contains VirtualBox, and does NOT match the XPDM name,
     164                 * assume it to be WDDM */
     165                else if (strstr(&dispDevice.DeviceString[0], "VirtualBox"))
    176166                    enmType = VBOXDISPLAY_DRIVER_TYPE_WDDM;
    177167#endif
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