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/user32.cpp

    r7685 r7691  
    1 /* $Id: user32.cpp,v 1.117 2001-12-26 14:47:22 achimha Exp $ */
     1/* $Id: user32.cpp,v 1.118 2001-12-26 19:05:35 achimha Exp $ */
    22
    33/*
     
    746746                        lpLogFont->lfFaceName[sizeof(lpLogFont->lfFaceName)-1] = 0;
    747747                        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                         else
    752                             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;
    753753                    }
    754754                    else fFound = FALSE;
     
    758758                                      lpLogFont->lfFaceName, LF_FACESIZE);
    759759                    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);
    761762                }
    762763                lpLogFont->lfWidth = 0;
Note: See TracChangeset for help on using the changeset viewer.