Ignore:
Timestamp:
Dec 26, 2001, 8:05:35 PM (24 years ago)
Author:
achimha
Message:

read system font height from graphics driver instead of hardcoding - only enabled for menus

File:
1 edited

Legend:

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

    r7403 r7691  
    1 /* $Id: pmwindow.cpp,v 1.165 2001-11-20 09:53:56 sandervl Exp $ */
     1/* $Id: pmwindow.cpp,v 1.166 2001-12-26 19:05:34 achimha Exp $ */
    22/*
    33 * Win32 Window Managment Code for OS/2
     
    7171       HWND  hwndCD = 0;
    7272
     73// this holds the font height that the display driver returns using DevQueryCaps
     74// 13 would be small fonts, 16 medium fonts and 20 large fonts
     75LONG CapsCharHeight = 0;
     76
    7377// Note:
    7478// For a "lonekey"-press of AltGr, we only receive WM_KEYUP
     
    204208
    205209    DevQueryCaps(hdc, CAPS_COLOR_BITCOUNT, 1, (PLONG)&ScreenBitsPerPel);
     210
     211    // query the font height to find out whether we have small or large fonts
     212    DevQueryCaps(hdc, CAPS_GRAPHICS_CHAR_HEIGHT, 1, (PLONG)&CapsCharHeight);
     213
    206214    DevCloseDC(hdc);
    207215
Note: See TracChangeset for help on using the changeset viewer.