Ignore:
Timestamp:
Sep 5, 2005, 8:20:43 PM (20 years ago)
Author:
pr
Message:

Bart's fix for bug 655

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/helpers/winh.c

    r276 r290  
    30803080 *
    30813081 *@@added V1.0.1 (2002-11-30) [umoeller]
     3082 *@@changed V1.0.4 (2005-09-02) [bvl]: Return 'Combined' fonts on DBCS systems to show DBCS characters properly @@fixes 655
    30823083 */
    30833084
     
    30853086{
    30863087    if (doshIsWarp4())
    3087         return "9.WarpSans";
    3088 
    3089     return "8.Helv";
     3088        if(nlsDBCS())
     3089            return "9.WarpSans Combined";
     3090        else
     3091            return "9.WarpSans";
     3092    else
     3093        if(nlsDBCS())
     3094            return "8.Helv Combined";
     3095        else
     3096            return "8.Helv";
    30903097}
    30913098
     
    31533160 *
    31543161 *@@added V0.9.0 [umoeller]
     3162 *@@changed V1.0.4 (2005-09-02) [bvl]: Return 'Combined' fonts on DBCS systems to show DBCS characters properly @@fixes 655
    31553163 */
    31563164
     
    31633171    HENUM   henum;
    31643172    HWND    hwndItem;
    3165     CHAR    szFont[256];
    31663173    ULONG   cbFont;
    31673174
    3168     if (pcszFont == NULL)
    3169     {
    3170         if (doshIsWarp4())
    3171             strhncpy0(szFont, "9.WarpSans", sizeof(szFont));
    3172         else
    3173             strhncpy0(szFont, "8.Helv", sizeof(szFont));
    3174     }
    3175     else
    3176         strhncpy0(szFont, pcszFont, sizeof(szFont));
    3177 
    3178     cbFont = strlen(szFont) + 1;
    3179 
     3175    if (!pcszFont)
     3176        pcszFont = winhQueryDefaultFont();
     3177
     3178    cbFont = strlen(pcszFont) + 1;
    31803179    // set font for all the dialog controls
    31813180    henum = WinBeginEnumWindows(hwndDlg);
     
    31893188                                PP_FONTNAMESIZE,
    31903189                                cbFont,
    3191                                 szFont))
     3190                                (PSZ)pcszFont))
    31923191                // successful:
    31933192                ulrc++;
Note: See TracChangeset for help on using the changeset viewer.