Changeset 68630 in vbox for trunk/src/VBox/Additions/WINNT/VBoxTray/VBoxDisplay.cpp
- Timestamp:
- Sep 5, 2017 11:33:54 AM (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Additions/WINNT/VBoxTray/VBoxDisplay.cpp
r68437 r68630 15 15 * hope that it will be useful, but WITHOUT ANY WARRANTY of any kind. 16 16 */ 17 18 19 /********************************************************************************************************************************* 20 * Header Files * 21 *********************************************************************************************************************************/ 17 22 #include "VBoxTray.h" 18 23 #include "VBoxHelpers.h" 19 24 #include "VBoxSeamless.h" 20 25 21 #include <malloc.h> 22 26 #include <iprt/alloca.h> 23 27 #include <iprt/assert.h> 24 28 #ifdef VBOX_WITH_WDDM … … 26 30 #endif 27 31 28 #ifdef DEBUG 32 #ifdef DEBUG /** @todo r=bird: these are all default values. sigh. */ 29 33 # define LOG_ENABLED 30 34 # define LOG_GROUP LOG_GROUP_DEFAULT 31 35 #endif 32 36 #include <VBox/log.h> 33 #include <VBox/VMMDev.h> 37 #include <VBox/VMMDev.h> /* for VMMDEV_EVENT_DISPLAY_CHANGE_REQUEST & VMMDEV_EVENT_MOUSE_CAPABILITIES_CHANGED */ 34 38 35 39 #include <VBoxDisplay.h> … … 37 41 38 42 39 43 /********************************************************************************************************************************* 44 * Structures and Typedefs * 45 *********************************************************************************************************************************/ 40 46 typedef struct _VBOXDISPLAYCONTEXT 41 47 { … … 50 56 } VBOXDISPLAYCONTEXT, *PVBOXDISPLAYCONTEXT; 51 57 52 static VBOXDISPLAYCONTEXT g_Ctx = { 0 };53 54 58 typedef enum 55 59 { … … 59 63 } VBOXDISPLAY_DRIVER_TYPE; 60 64 61 static VBOXDISPLAY_DRIVER_TYPE getVBoxDisplayDriverType (VBOXDISPLAYCONTEXT *pCtx); 65 66 /********************************************************************************************************************************* 67 * Global Variables * 68 *********************************************************************************************************************************/ 69 static VBOXDISPLAYCONTEXT g_Ctx = { 0 }; 70 71 72 /********************************************************************************************************************************* 73 * Internal Functions * 74 *********************************************************************************************************************************/ 75 static VBOXDISPLAY_DRIVER_TYPE getVBoxDisplayDriverType(VBOXDISPLAYCONTEXT *pCtx); 76 62 77 63 78 static DECLCALLBACK(int) VBoxDisplayInit(const PVBOXSERVICEENV pEnv, void **ppInstance) … … 551 566 LogFlowFunc(("ResizeDisplayDevice: Found total %d devices. err %d\n", NumDevices, GetLastError ())); 552 567 553 DISPLAY_DEVICE *paDisplayDevices = (DISPLAY_DEVICE *)alloca 554 DEVMODE *paDeviceModes = (DEVMODE *)alloca 568 DISPLAY_DEVICE *paDisplayDevices = (DISPLAY_DEVICE *)alloca(sizeof (DISPLAY_DEVICE) * NumDevices); 569 DEVMODE *paDeviceModes = (DEVMODE *)alloca(sizeof (DEVMODE) * NumDevices); 555 570 RECTL *paRects = (RECTL *)alloca (sizeof (RECTL) * NumDevices); 556 571 DWORD DevNum = 0;
Note:
See TracChangeset
for help on using the changeset viewer.