Changeset 42232 in vbox for trunk/src/VBox/Additions/WINNT/VBoxTray/VBoxDisplay.cpp
- Timestamp:
- Jul 19, 2012 4:06:17 PM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Additions/WINNT/VBoxTray/VBoxDisplay.cpp
r42224 r42232 33 33 const VBOXSERVICEENV *pEnv; 34 34 35 BOOL fAnyX; 36 35 37 /* ChangeDisplaySettingsEx does not exist in NT. ResizeDisplayDevice uses the function. */ 36 38 LONG (WINAPI * pfnChangeDisplaySettingsEx)(LPCTSTR lpszDeviceName, LPDEVMODE lpDevMode, HWND hwnd, DWORD dwflags, LPVOID lParam); … … 107 109 } 108 110 111 VBOXDISPIFESCAPE_ISANYX IsAnyX = {0}; 112 IsAnyX.EscapeHdr.escapeCode = VBOXESC_ISANYX; 113 DWORD err = VBoxDispIfEscapeInOut(&pEnv->dispIf, &IsAnyX.EscapeHdr, sizeof (uint32_t)); 114 if (err == NO_ERROR) 115 gCtx.fAnyX = !!IsAnyX.u32IsAnyX; 116 else 117 gCtx.fAnyX = TRUE; 118 109 119 Log(("VBoxTray: VBoxDisplayInit: Display init successful\n")); 110 120 … … 208 218 { 209 219 BOOL fModeReset = (Width == 0 && Height == 0 && BitsPerPixel == 0); 220 221 if (!gCtx.fAnyX) 222 Width &= 0xFFF8; 210 223 211 224 DISPLAY_DEVICE DisplayDevice;
Note:
See TracChangeset
for help on using the changeset viewer.