--- np2/wince/fontmng.cpp 2003/10/16 17:59:33 1.1 +++ np2/wince/fontmng.cpp 2003/11/21 09:28:02 1.2 @@ -188,7 +188,6 @@ void *fontmng_create(int size, UINT type return(ret); } - void fontmng_destroy(void *hdl) { FNTMNG fhdl; @@ -202,6 +201,12 @@ void fontmng_destroy(void *hdl) { } } +int fontmng_getpoint(void *hdl) { + + if (hdl) { + } + return(0); +} #ifdef _WIN32_WCE static void getlength1(FNTMNG fhdl, FNTDAT fdat, LPCTSTR string, @@ -258,7 +263,6 @@ static void fontmng_getchar(FNTMNG fhdl, getlength1(fhdl, fdat, txtwork, len, leng); } - BOOL fontmng_getsize(void *hdl, const char *string, POINT_T *pt) { TCHAR txtwork[4]; @@ -268,11 +272,10 @@ BOOL fontmng_getsize(void *hdl, const ch DWORD len; int leng; - width = 0; if ((hdl == NULL) || (string == NULL)) { goto fmgs_exit; } - + width = 0; buf[2] = '\0'; do { buf[0] = *string++; @@ -306,7 +309,6 @@ fmgs_exit: return(FAILURE); } - BOOL fontmng_getdrawsize(void *hdl, const char *string, POINT_T *pt) { TCHAR txtwork[4]; @@ -357,7 +359,6 @@ fmgds_exit: return(FAILURE); } - #else static void getlength1(FNTMNG fhdl, FNTDAT fdat, @@ -398,7 +399,6 @@ static void getlength1(FNTMNG fhdl, FNTD } } - static void fontmng_getchar(FNTMNG fhdl, FNTDAT fdat, const char *string) { int leng; @@ -410,7 +410,6 @@ static void fontmng_getchar(FNTMNG fhdl, getlength1(fhdl, fdat, string, leng); } - BOOL fontmng_getsize(void *hdl, const char *string, POINT_T *pt) { char buf[4]; @@ -454,7 +453,6 @@ fmgs_exit: return(FAILURE); } - BOOL fontmng_getdrawsize(void *hdl, const char *string, POINT_T *pt) { char buf[4]; @@ -502,7 +500,6 @@ fmgds_exit: } #endif - static void fontmng_setpat(FNTMNG fhdl, FNTDAT fdat) { DWORD remx; @@ -586,7 +583,6 @@ fmsp_end: return; } - FNTDAT fontmng_get(void *hdl, const char *string) { FNTMNG fhdl;