Ignore:
Timestamp:
Jun 13, 2001, 12:29:46 PM (24 years ago)
Author:
sandervl
Message:

OS/2 looks changes + fixes

File:
1 edited

Legend:

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

    r5973 r5993  
    1 /* $Id: user32.cpp,v 1.100 2001-06-12 17:02:36 sandervl Exp $ */
     1/* $Id: user32.cpp,v 1.101 2001-06-13 10:29:45 sandervl Exp $ */
    22
    33/*
     
    633633        *(BOOL *)pvParam = FALSE; //CB: where is the Warp 4 setting stored?
    634634        break;
     635
    635636    case SPI_GETNONCLIENTMETRICS:
    636637    {
    637638        LPNONCLIENTMETRICSA lpnm = (LPNONCLIENTMETRICSA)pvParam;
    638639               
    639         if (lpnm->cbSize == sizeof(NONCLIENTMETRICSA))
     640        if (lpnm->cbSize == sizeof(NONCLIENTMETRICSA))
    640641        {
    641642            memset(lpnm, 0, sizeof(NONCLIENTMETRICSA));
     
    652653
    653654            LPLOGFONTA lpLogFont = &(lpnm->lfMenuFont);
    654             GetProfileStringA("Desktop", "MenuFont", "MS Sans Serif",
    655                               lpLogFont->lfFaceName, LF_FACESIZE);
    656 
    657             lpLogFont->lfHeight = -GetProfileIntA("Desktop","MenuFontSize", 13);
    658             lpLogFont->lfWidth = 0;
    659             lpLogFont->lfEscapement = lpLogFont->lfOrientation = 0;
    660             lpLogFont->lfWeight = FW_NORMAL;
     655            if(fOS2Look) {
     656                GetProfileStringA("Desktop", "MenuFont", "WarpSans",
     657                                  lpLogFont->lfFaceName, LF_FACESIZE);
     658                lpLogFont->lfWeight = FW_BOLD;
     659                lpLogFont->lfHeight = -GetProfileIntA("Desktop","MenuFontSize", 16);
     660                lpLogFont->lfWidth = 0;
     661                lpLogFont->lfEscapement = lpLogFont->lfOrientation = 0;
     662            }
     663            else {
     664                GetProfileStringA("Desktop", "MenuFont", "MS Sans Serif",
     665                                  lpLogFont->lfFaceName, LF_FACESIZE);
     666                lpLogFont->lfWeight = FW_NORMAL;
     667                lpLogFont->lfHeight = -GetProfileIntA("Desktop","MenuFontSize", 13);
     668                lpLogFont->lfWidth = 0;
     669                lpLogFont->lfEscapement = lpLogFont->lfOrientation = 0;
     670            }
    661671            lpLogFont->lfItalic = FALSE;
    662672            lpLogFont->lfStrikeOut = FALSE;
     
    677687            lpnm->iMenuHeight      = GetSystemMetrics(SM_CYMENU);
    678688            lpnm->iMenuWidth       = lpnm->iMenuHeight; //TODO
    679         }
     689          }
    680690        else
    681         {
     691        {
    682692            dprintf(("SPI_GETNONCLIENTMETRICS: size mismatch !! (is %d; should be %d)\n", lpnm->cbSize, sizeof(NONCLIENTMETRICSA)));
    683693            /* FIXME: SetLastError? */
Note: See TracChangeset for help on using the changeset viewer.