Ignore:
Timestamp:
Apr 2, 2003, 2:58:58 PM (22 years ago)
Author:
sandervl
Message:

YD: Changes for header updates

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/gdi32/font.cpp

    r9443 r9975  
    1 /* $Id: font.cpp,v 1.28 2002-11-29 13:46:03 sandervl Exp $ */
     1/* $Id: font.cpp,v 1.29 2003-04-02 12:58:58 sandervl Exp $ */
    22
    33/*
     
    372372  memcpy(&logFont, lpLogFont, sizeof(ENUMLOGFONTA));
    373373  memset(logFont.elfScript, 0, sizeof(logFont.elfScript));
    374   memcpy(&textM.ntmetm, lpTextM, sizeof(textM.ntmetm));
    375   memset(&textM.ntmeFontSignature, 0, sizeof(textM.ntmeFontSignature));
    376 
    377   dprintf(("EnumFontProcExA %s height %d", logFont.elfLogFont.lfFaceName, textM.ntmetm.tmHeight));
     374  memcpy(&textM.ntmTm, lpTextM, sizeof(textM.ntmTm));
     375  memset(&textM.ntmFontSig, 0, sizeof(textM.ntmFontSig));
     376
     377  dprintf(("EnumFontProcExA %s height %d", logFont.elfLogFont.lfFaceName, textM.ntmTm.tmHeight));
    378378
    379379  int rc = proc(&logFont, &textM, arg3, lpEnumData->userData);
     
    400400  AsciiToUnicodeN((char *) lpLogFont->elfStyle, LogFont.elfStyle, LF_FACESIZE-1);
    401401
    402   textM.ntmetm.tmHeight = lpTextM->tmHeight;
    403   textM.ntmetm.tmAscent = lpTextM->tmAscent;
    404   textM.ntmetm.tmDescent = lpTextM->tmDescent;
    405   textM.ntmetm.tmInternalLeading = lpTextM->tmInternalLeading;
    406   textM.ntmetm.tmExternalLeading = lpTextM->tmExternalLeading;
    407   textM.ntmetm.tmAveCharWidth = lpTextM->tmAveCharWidth;
    408   textM.ntmetm.tmMaxCharWidth = lpTextM->tmMaxCharWidth;
    409   textM.ntmetm.tmWeight = lpTextM->tmWeight;
    410   textM.ntmetm.tmOverhang = lpTextM->tmOverhang;
    411   textM.ntmetm.tmDigitizedAspectX = lpTextM->tmDigitizedAspectX;
    412   textM.ntmetm.tmDigitizedAspectY = lpTextM->tmDigitizedAspectY;
    413   textM.ntmetm.tmFirstChar = lpTextM->tmFirstChar;
    414   textM.ntmetm.tmLastChar = lpTextM->tmLastChar;
    415   textM.ntmetm.tmDefaultChar = lpTextM->tmDefaultChar;
    416   textM.ntmetm.tmBreakChar = lpTextM->tmBreakChar;
    417   textM.ntmetm.tmItalic = lpTextM->tmItalic;
    418   textM.ntmetm.tmUnderlined = lpTextM->tmUnderlined;
    419   textM.ntmetm.tmStruckOut = lpTextM->tmStruckOut;
    420   textM.ntmetm.tmPitchAndFamily = lpTextM->tmPitchAndFamily;
    421   textM.ntmetm.tmCharSet = lpTextM->tmCharSet;
    422   textM.ntmetm.ntmFlags = 0;
    423   textM.ntmetm.ntmSizeEM = 0;
    424   textM.ntmetm.ntmCellHeight = 0;
    425   textM.ntmetm.ntmAvgWidth = 0;
    426   memset(&textM.ntmeFontSignature, 0, sizeof(textM.ntmeFontSignature));
    427 
    428   dprintf(("EnumFontProcExW %s height %d", lpLogFont->elfLogFont.lfFaceName, textM.ntmetm.tmHeight));
     402  textM.ntmTm.tmHeight = lpTextM->tmHeight;
     403  textM.ntmTm.tmAscent = lpTextM->tmAscent;
     404  textM.ntmTm.tmDescent = lpTextM->tmDescent;
     405  textM.ntmTm.tmInternalLeading = lpTextM->tmInternalLeading;
     406  textM.ntmTm.tmExternalLeading = lpTextM->tmExternalLeading;
     407  textM.ntmTm.tmAveCharWidth = lpTextM->tmAveCharWidth;
     408  textM.ntmTm.tmMaxCharWidth = lpTextM->tmMaxCharWidth;
     409  textM.ntmTm.tmWeight = lpTextM->tmWeight;
     410  textM.ntmTm.tmOverhang = lpTextM->tmOverhang;
     411  textM.ntmTm.tmDigitizedAspectX = lpTextM->tmDigitizedAspectX;
     412  textM.ntmTm.tmDigitizedAspectY = lpTextM->tmDigitizedAspectY;
     413  textM.ntmTm.tmFirstChar = lpTextM->tmFirstChar;
     414  textM.ntmTm.tmLastChar = lpTextM->tmLastChar;
     415  textM.ntmTm.tmDefaultChar = lpTextM->tmDefaultChar;
     416  textM.ntmTm.tmBreakChar = lpTextM->tmBreakChar;
     417  textM.ntmTm.tmItalic = lpTextM->tmItalic;
     418  textM.ntmTm.tmUnderlined = lpTextM->tmUnderlined;
     419  textM.ntmTm.tmStruckOut = lpTextM->tmStruckOut;
     420  textM.ntmTm.tmPitchAndFamily = lpTextM->tmPitchAndFamily;
     421  textM.ntmTm.tmCharSet = lpTextM->tmCharSet;
     422  textM.ntmTm.ntmFlags = 0;
     423  textM.ntmTm.ntmSizeEM = 0;
     424  textM.ntmTm.ntmCellHeight = 0;
     425  textM.ntmTm.ntmAvgWidth = 0;
     426  memset(&textM.ntmFontSig, 0, sizeof(textM.ntmFontSig));
     427
     428  dprintf(("EnumFontProcExW %s height %d", lpLogFont->elfLogFont.lfFaceName, textM.ntmTm.tmHeight));
    429429  rc = proc(&LogFont, &textM, arg3, lpEnumData->userData);
    430430  SetFS(selTIB);           // switch back to the saved FS selector
Note: See TracChangeset for help on using the changeset viewer.