Changeset 42098 in vbox for trunk/src/VBox/Additions/WINNT/VBoxTray/VBoxDisplay.cpp
- Timestamp:
- Jul 10, 2012 4:16:18 PM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Additions/WINNT/VBoxTray/VBoxDisplay.cpp
r40672 r42098 41 41 42 42 #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 56 43 typedef enum 57 44 { … … 173 160 #else 174 161 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")) 176 166 enmType = VBOXDISPLAY_DRIVER_TYPE_WDDM; 177 167 #endif
Note:
See TracChangeset
for help on using the changeset viewer.