Changeset 1818 for trunk/src/user32/pmwindow.cpp
- Timestamp:
- Nov 23, 1999, 8:34:19 PM (26 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/user32/pmwindow.cpp
r1762 r1818 1 /* $Id: pmwindow.cpp,v 1.5 4 1999-11-17 17:04:53 cbratschiExp $ */1 /* $Id: pmwindow.cpp,v 1.55 1999-11-23 19:34:19 sandervl Exp $ */ 2 2 /* 3 3 * Win32 Window Managment Code for OS/2 … … 12 12 #define INCL_WIN 13 13 #define INCL_GPI 14 #define INCL_DEV /* Device Function definitions */ 15 #define INCL_GPICONTROL /* GPI control Functions */ 14 16 15 17 #include <os2wrap.h> … … 39 41 ULONG ScreenWidth = 0; 40 42 ULONG ScreenHeight = 0; 43 ULONG ScreenBitsPerPel = 0; 41 44 42 45 //Used for key translation while processing WM_CHAR message … … 175 178 ScreenWidth = desktopRectl.xRight; 176 179 ScreenHeight = desktopRectl.yTop; 180 181 182 HDC hdc; /* Device-context handle */ 183 /* context data structure */ 184 DEVOPENSTRUC dop = {NULL, "DISPLAY", NULL, NULL, NULL, NULL, 185 NULL, NULL, NULL}; 186 187 /* create memory device context */ 188 hdc = DevOpenDC(hab, OD_MEMORY, "*", 5L, (PDEVOPENDATA)&dop, NULLHANDLE); 189 DevQueryCaps(hdc, CAPS_COLOR_BITCOUNT, 1, (PLONG)&ScreenBitsPerPel); 190 DevCloseDC(hdc); 177 191 178 192 dprintf(("InitPM: Desktop (%d,%d)", ScreenWidth, ScreenHeight));
Note:
See TracChangeset
for help on using the changeset viewer.