Changeset 32622 in vbox for trunk/src/VBox/Additions/WINNT/VBoxTray/VBoxDisplay.cpp
- Timestamp:
- Sep 17, 2010 8:18:39 PM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Additions/WINNT/VBoxTray/VBoxDisplay.cpp
r32592 r32622 39 39 static VBOXDISPLAYCONTEXT gCtx = {0}; 40 40 41 #ifdef VBOX WDDM41 #ifdef VBOX_WITH_WDDM 42 42 static bool vboxWddmReinitVideoModes(VBOXDISPLAYCONTEXT *pCtx) 43 43 { … … 88 88 Log(("VBoxTray: VBoxDisplayInit: pfnEnumDisplayDevices = %p\n", gCtx.pfnEnumDisplayDevices)); 89 89 90 #ifdef VBOX WDDM90 #ifdef VBOX_WITH_WDDM 91 91 if (OSinfo.dwMajorVersion >= 6) 92 92 { … … 129 129 } 130 130 131 #ifdef VBOX WDDM131 #ifdef VBOX_WITH_WDDM 132 132 static VBOXDISPLAY_DRIVER_TYPE getVBoxDisplayDriverType(VBOXDISPLAYCONTEXT *pCtx) 133 133 #else … … 135 135 #endif 136 136 { 137 #ifdef VBOX WDDM137 #ifdef VBOX_WITH_WDDM 138 138 VBOXDISPLAY_DRIVER_TYPE enmType = VBOXDISPLAY_DRIVER_TYPE_UNKNOWN; 139 139 #else … … 168 168 169 169 if (strcmp(&dispDevice.DeviceString[0], "VirtualBox Graphics Adapter") == 0) 170 #ifndef VBOX WDDM170 #ifndef VBOX_WITH_WDDM 171 171 result = true; 172 172 #else … … 196 196 /* Check for the short name, because all long stuff would be truncated */ 197 197 if (strcmp((char*)&tempDevMode.dmDeviceName[0], "VBoxDisp") == 0) 198 #ifndef VBOX WDDM198 #ifndef VBOX_WITH_WDDM 199 199 result = true; 200 200 #else … … 203 203 } 204 204 205 #ifndef VBOX WDDM205 #ifndef VBOX_WITH_WDDM 206 206 return result; 207 207 #else … … 532 532 * Only try to change video mode if the active display driver is VBox additions. 533 533 */ 534 #ifdef VBOX WDDM534 #ifdef VBOX_WITH_WDDM 535 535 VBOXDISPLAY_DRIVER_TYPE enmDriverType = getVBoxDisplayDriverType (pCtx); 536 536 … … 549 549 Log(("VBoxTray: VBoxDisplayThread: Detected W2K or later\n")); 550 550 551 #ifdef VBOX WDDM551 #ifdef VBOX_WITH_WDDM 552 552 if (enmDriverType == VBOXDISPLAY_DRIVER_TYPE_WDDM) 553 553 {
Note:
See TracChangeset
for help on using the changeset viewer.