|
|
| version 1.3, 2005/02/09 20:11:35 | version 1.6, 2005/03/11 15:12:58 |
|---|---|
| Line 92 void *fontmng_create(int size, UINT type | Line 92 void *fontmng_create(int size, UINT type |
| bi->bmiColors[i].rgbReserved = PC_RESERVED; | bi->bmiColors[i].rgbReserved = PC_RESERVED; |
| } | } |
| hdc = GetDC(NULL); | hdc = GetDC(NULL); |
| ret->hBitmap = CreateDIBSection(hdc, bi, DIB_RGB_COLORS, | ret->hBitmap = CreateDIBSection(hdc, bi, DIB_RGB_COLORS, |
| (void **)&ret->image, NULL, 0); | (void **)&ret->image, NULL, 0); |
| ret->hdcimage = CreateCompatibleDC(hdc); | ret->hdcimage = CreateCompatibleDC(hdc); |
| Line 117 void *fontmng_create(int size, UINT type | Line 117 void *fontmng_create(int size, UINT type |
| return(ret); | return(ret); |
| } | } |
| void fontmng_destroy(void *hdl) { | void fontmng_destroy(void *hdl) { |
| FNTMNG fhdl; | FNTMNG fhdl; |
| Line 164 static void fontmng_getchar(FNTMNG fhdl, | Line 163 static void fontmng_getchar(FNTMNG fhdl, |
| BRESULT fontmng_getsize(void *hdl, const OEMCHAR *string, POINT_T *pt) { | BRESULT fontmng_getsize(void *hdl, const OEMCHAR *string, POINT_T *pt) { |
| int width; | |
| OEMCHAR buf[4]; | OEMCHAR buf[4]; |
| _FNTDAT fdat; | _FNTDAT fdat; |
| int width; | |
| int leng; | int leng; |
| width = 0; | |
| if ((hdl == NULL) || (string == NULL)) { | if ((hdl == NULL) || (string == NULL)) { |
| goto fmgs_exit; | goto fmgs_exit; |
| } | } |
| width = 0; | |
| while(1) { | while(1) { |
| leng = milstr_charsize(string); | leng = milstr_charsize(string); |
| if (!leng) { | if (!leng) { |