Changeset 1391 for trunk/dll/fonts.c


Ignore:
Timestamp:
Jan 12, 2009, 12:55:53 AM (17 years ago)
Author:
Gregg Young
Message:

Move nontranslated strings to init.c and codepage.c; use those strings in place of GetPString calls. Move other strings to a StringTable; minor cleanup and code changes to codepage.c to use a string array instead of GetPString calls. Ticket 340

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/dll/fonts.c

    r1305 r1391  
    1111  05 Jan 08 SHL Sync
    1212  29 Nov 08 GKY Remove or replace with a mutex semaphore DosEnterCriSec where appropriate.
     13  10 Jan 09 GKY Removed rotating strings for font samples as part of StringTable conversion
    1314
    1415***********************************************************************/
     
    3233#pragma data_seg(DATA1)
    3334
    34 static INT counter = 0;
    3535
    3636/*
     
    125125  //DosEnterCritSec(); //GKY 11-30-08
    126126  DosRequestMutexSem(hmtxFM2Globals, SEM_INDEFINITE_WAIT);
    127   szPreview = GetPString(IDS_BLURB1TEXT + counter++);
    128   if (strcmp(szPreview, "0")) {
    129     counter = 0;
    130     szPreview = GetPString(IDS_BLURB1TEXT + counter++);
    131   }
     127  szPreview = GetPString(IDS_BLURB1TEXT);
    132128  DosReleaseMutexSem(hmtxFM2Globals);
    133129  //DosExitCritSec();
     
    188184  //DosEnterCritSec(); //GKY 11-30-08
    189185  DosRequestMutexSem(hmtxFM2Globals, SEM_INDEFINITE_WAIT);
    190   szPreview = GetPString(IDS_BLURB1TEXT + counter++);
    191   if (strcmp(szPreview, "0")) {
    192     counter = 0;
    193     szPreview = GetPString(IDS_BLURB1TEXT + counter++);
    194   }
     186  szPreview = GetPString(IDS_BLURB1TEXT);
    195187  DosReleaseMutexSem(hmtxFM2Globals);
    196188  //DosExitCritSec();
Note: See TracChangeset for help on using the changeset viewer.