- Timestamp:
- Dec 26, 2001, 8:05:35 PM (24 years ago)
- Location:
- trunk/src/user32
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/user32/pmwindow.cpp
r7403 r7691 1 /* $Id: pmwindow.cpp,v 1.16 5 2001-11-20 09:53:56 sandervlExp $ */1 /* $Id: pmwindow.cpp,v 1.166 2001-12-26 19:05:34 achimha Exp $ */ 2 2 /* 3 3 * Win32 Window Managment Code for OS/2 … … 71 71 HWND hwndCD = 0; 72 72 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 75 LONG CapsCharHeight = 0; 76 73 77 // Note: 74 78 // For a "lonekey"-press of AltGr, we only receive WM_KEYUP … … 204 208 205 209 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 206 214 DevCloseDC(hdc); 207 215 -
trunk/src/user32/pmwindow.h
r7403 r7691 1 /* $Id: pmwindow.h,v 1.1 4 2001-11-20 09:53:57 sandervlExp $ */1 /* $Id: pmwindow.h,v 1.15 2001-12-26 19:05:35 achimha Exp $ */ 2 2 /* 3 3 * Win32 Window Managment Code for OS/2 … … 27 27 extern BOOL fOS2Look; 28 28 extern HWND hwndCD; 29 extern LONG CapsCharHeight; 29 30 30 31 #define TFOS_LEFT 0x0001 -
trunk/src/user32/user32.cpp
r7685 r7691 1 /* $Id: user32.cpp,v 1.11 7 2001-12-26 14:47:22achimha Exp $ */1 /* $Id: user32.cpp,v 1.118 2001-12-26 19:05:35 achimha Exp $ */ 2 2 3 3 /* … … 746 746 lpLogFont->lfFaceName[sizeof(lpLogFont->lfFaceName)-1] = 0; 747 747 lpLogFont->lfWeight = FW_NORMAL; 748 // AH 2001-12-26 special case for WarpSans 749 if (strncmp(lpLogFont->lfFaceName, "WarpSans", 8) == 0)750 lpLogFont->lfHeight = 9;751 else752 lpLogFont->lfHeight = 16; //atoi(fontname);748 749 // AH 2001-12-26 use the font size returned by the graphics 750 // driver as the font height. This will take font size settings 751 // such as small, medium and large fonts into account 752 lpLogFont->lfHeight = CapsCharHeight; 753 753 } 754 754 else fFound = FALSE; … … 758 758 lpLogFont->lfFaceName, LF_FACESIZE); 759 759 lpLogFont->lfWeight = FW_BOLD; 760 lpLogFont->lfHeight = -GetProfileIntA("Desktop","MenuFontSize", 16); 760 // AH 2001-12-26 take graphics driver font size setting 761 lpLogFont->lfHeight = -GetProfileIntA("Desktop","MenuFontSize", CapsCharHeight); 761 762 } 762 763 lpLogFont->lfWidth = 0;
Note:
See TracChangeset
for help on using the changeset viewer.