Diff for /np2/wince/fontmng.cpp between versions 1.9 and 1.10

version 1.9, 2005/02/13 05:31:26 version 1.10, 2005/03/09 19:31:35
Line 249  static void fontmng_getchar(FNTMNG fhdl, Line 249  static void fontmng_getchar(FNTMNG fhdl,
   
         FillRect(fhdl->hdcimage, &fhdl->rect,          FillRect(fhdl->hdcimage, &fhdl->rect,
                                                                                 (HBRUSH)GetStockObject(BLACK_BRUSH));                                                                                  (HBRUSH)GetStockObject(BLACK_BRUSH));
   #if !defined(_WIN32_WCE)
         TextOut(fhdl->hdcimage, 0, 0, string, length);          TextOut(fhdl->hdcimage, 0, 0, string, length);
   #else
           ExtTextOut(fhdl->hdcimage, 0, 0, ETO_OPAQUE, NULL, string, length, NULL);
   #endif
         getlength1(fhdl, fdat, string, length);          getlength1(fhdl, fdat, string, length);
 }  }
   
Line 269  BRESULT fontmng_getsize(void *hdl, const Line 273  BRESULT fontmng_getsize(void *hdl, const
                 if (!leng) {                  if (!leng) {
                         break;                          break;
                 }                  }
 #if defined(UNICODE) && defined(OSLANG_UTF8)  #if defined(UNICODE) && defined(OSLANG_SJIS)
                   UINT16 unistr[2];
                   MultiByteToWideChar(CP_ACP, MB_PRECOMPOSED, string, -1,
                                                                                                   unistr, NELEMENTS(unistr));
                   getlength1((FNTMNG)hdl, &fdat, unistr, 1);
   #elif defined(UNICODE) && defined(OSLANG_UTF8)
                 UINT16 unistr[2];                  UINT16 unistr[2];
                 codecnv_utf8toucs2(unistr, NELEMENTS(unistr), string, (UINT)-1);                  codecnv_utf8toucs2(unistr, NELEMENTS(unistr), string, (UINT)-1);
                 getlength1((FNTMNG)hdl, &fdat, unistr, 1);                  getlength1((FNTMNG)hdl, &fdat, unistr, 1);
Line 308  BRESULT fontmng_getdrawsize(void *hdl, c Line 317  BRESULT fontmng_getdrawsize(void *hdl, c
                 if (!leng) {                  if (!leng) {
                         break;                          break;
                 }                  }
 #if defined(UNICODE) && defined(OSLANG_UTF8)  #if defined(UNICODE) && defined(OSLANG_SJIS)
                   UINT16 unistr[2];
                   MultiByteToWideChar(CP_ACP, MB_PRECOMPOSED, string, -1,
                                                                                                   unistr, NELEMENTS(unistr));
                   getlength1((FNTMNG)hdl, &fdat, unistr, 1);
   #elif defined(UNICODE) && defined(OSLANG_UTF8)
                 UINT16 unistr[2];                  UINT16 unistr[2];
                 codecnv_utf8toucs2(unistr, NELEMENTS(unistr), string, (UINT)-1);                  codecnv_utf8toucs2(unistr, NELEMENTS(unistr), string, (UINT)-1);
                 getlength1((FNTMNG)hdl, &fdat, unistr, 1);                  getlength1((FNTMNG)hdl, &fdat, unistr, 1);
Line 479  FNTDAT fontmng_get(void *hdl, const OEMC Line 493  FNTDAT fontmng_get(void *hdl, const OEMC
         fdat = (FNTDAT)(fhdl + 1);          fdat = (FNTDAT)(fhdl + 1);
 #endif  #endif
   
 #if defined(UNICODE) && defined(OSLANG_UTF8)  #if defined(UNICODE) && defined(OSLANG_SJIS)
           UINT16 unistr[2];
           MultiByteToWideChar(CP_ACP, MB_PRECOMPOSED, string, -1,
                                                                                                   unistr, NELEMENTS(unistr));
           fontmng_getchar(fhdl, fdat, unistr, 1);
   #elif defined(UNICODE) && defined(OSLANG_UTF8)
         UINT16 unistr[2];          UINT16 unistr[2];
         codecnv_utf8toucs2(unistr, NELEMENTS(unistr), string, (UINT)-1);          codecnv_utf8toucs2(unistr, NELEMENTS(unistr), string, (UINT)-1);
         fontmng_getchar(fhdl, fdat, unistr, 1);          fontmng_getchar(fhdl, fdat, unistr, 1);

Removed from v.1.9  
changed lines
  Added in v.1.10


RetroPC.NET-CVS <cvs@retropc.net>