Ignore:
Timestamp:
Apr 25, 2001, 10:53:02 PM (24 years ago)
Author:
sandervl
Message:

DBCS fix

File:
1 edited

Legend:

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

    r5057 r5585  
    1 /* $Id: font.cpp,v 1.17 2001-02-02 19:37:08 sandervl Exp $ */
     1/* $Id: font.cpp,v 1.18 2001-04-25 20:53:02 sandervl Exp $ */
    22
    33/*
     
    3030#include <stdlib.h>
    3131#include <stdarg.h>
     32#include <ctype.h>
    3233#include <string.h>
    3334#include "misc.h"
     
    121122  strncpy(lpstrFaceTemp, lpstrFaceOriginal, LF_FACESIZE);
    122123  lpstrFaceTemp[LF_FACESIZE-1] = 0;
    123   strupr(lpstrFaceTemp);
     124
     125  {
     126    char *y = lpstrFaceTemp;
     127    while(*y) {
     128      if(IsDBCSLeadByte( *y )) {
     129        y += 2; // DBCS skip
     130      } else {
     131        *y = toupper( *y );
     132        y++;
     133      }
     134    }
     135  }
    124136
    125137  //lookup table
Note: See TracChangeset for help on using the changeset viewer.