Changeset 1433 for trunk/dll/newview.c


Ignore:
Timestamp:
Jun 23, 2009, 12:47:44 AM (16 years ago)
Author:
Gregg Young
Message:

Rename different occurences of FIXED_FONT_LCID and give each a different value.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/dll/newview.c

    r1402 r1433  
    115115#define VF_FTP          0x08
    116116
    117 #define FIXED_FONT_LCID 5
     117#define NEWVIEWMLE_FONT_LCID 5
    118118
    119119#define COLORS_MAX                   14
     
    717717    if (hps) {
    718718      GpiSetCp(hps, (ULONG) ad->fattrs.usCodePage);
    719       GpiCreateLogFont(hps, NULL, FIXED_FONT_LCID, &ad->fattrs);
    720       GpiSetCharSet(hps, FIXED_FONT_LCID);
     719      GpiCreateLogFont(hps, NULL, NEWVIEWMLE_FONT_LCID, &ad->fattrs);
     720      GpiSetCharSet(hps, NEWVIEWMLE_FONT_LCID);
    721721      GpiQueryFontMetrics(hps, (long)sizeof(FONTMETRICS), &FontMetrics);
    722722      ad->fattrs.lAveCharWidth = FontMetrics.lAveCharWidth;
     
    37793779                              "Viewer.Codepage",
    37803780                              &ad->fattrs.usCodePage, sizeof(USHORT));
    3781           GpiDeleteSetId(ad->hps, FIXED_FONT_LCID);
     3781          GpiDeleteSetId(ad->hps, NEWVIEWMLE_FONT_LCID);
    37823782          GpiAssociate(ad->hps, 0);
    37833783          GpiDestroyPS(ad->hps);
     
    39473947                              &ad->fattrs, sizeof(FATTRS));
    39483948          Fattrs = ad->fattrs;
    3949           GpiDeleteSetId(ad->hps, FIXED_FONT_LCID);
     3949          GpiDeleteSetId(ad->hps, NEWVIEWMLE_FONT_LCID);
    39503950          GpiAssociate(ad->hps, 0);
    39513951          GpiDestroyPS(ad->hps);
     
    40174017          DosSleep(100); //05 Aug 07 GKY 128
    40184018        if (ad->hps) {
    4019           GpiDeleteSetId(ad->hps, FIXED_FONT_LCID);
     4019          GpiDeleteSetId(ad->hps, NEWVIEWMLE_FONT_LCID);
    40204020          GpiAssociate(ad->hps, 0);
    40214021          GpiDestroyPS(ad->hps);
Note: See TracChangeset for help on using the changeset viewer.