Ignore:
Timestamp:
Nov 23, 1999, 8:34:19 PM (26 years ago)
Author:
sandervl
Message:

display api fixes

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/user32/pmwindow.cpp

    r1762 r1818  
    1 /* $Id: pmwindow.cpp,v 1.54 1999-11-17 17:04:53 cbratschi Exp $ */
     1/* $Id: pmwindow.cpp,v 1.55 1999-11-23 19:34:19 sandervl Exp $ */
    22/*
    33 * Win32 Window Managment Code for OS/2
     
    1212#define INCL_WIN
    1313#define INCL_GPI
     14#define INCL_DEV                /* Device Function definitions  */
     15#define INCL_GPICONTROL         /* GPI control Functions        */
    1416
    1517#include <os2wrap.h>
     
    3941ULONG ScreenWidth  = 0;
    4042ULONG ScreenHeight = 0;
     43ULONG ScreenBitsPerPel = 0;
    4144
    4245//Used for key translation while processing WM_CHAR message
     
    175178   ScreenWidth  = desktopRectl.xRight;
    176179   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);
    177191
    178192   dprintf(("InitPM: Desktop (%d,%d)", ScreenWidth, ScreenHeight));
Note: See TracChangeset for help on using the changeset viewer.