--- np2/wince/fontmng.cpp 2003/12/01 21:15:13 1.3 +++ np2/wince/fontmng.cpp 2004/06/14 13:35:40 1.5 @@ -208,7 +208,7 @@ int fontmng_getpoint(void *hdl) { return(0); } -#ifdef _WIN32_WCE +#ifdef UNICODE static void getlength1(FNTMNG fhdl, FNTDAT fdat, LPCTSTR string, int tleng, int length) { @@ -223,7 +223,11 @@ static void getlength1(FNTMNG fhdl, FNTD fdat->height = fhdl->bmpheight >> 1; } else { +#if 1 // PocketPCのみ戻り値が変らしい? + fdat->width = min(fntsize.cx, fhdl->bmpwidth); +#else fdat->width = min(fntsize.cx + 1, fhdl->bmpwidth); +#endif fdat->pitch = min(fntsize.cx, fhdl->bmpwidth); fdat->height = fhdl->bmpheight; }