|
|
| version 1.1, 2005/02/04 05:45:46 | version 1.2, 2005/02/12 12:13:58 |
|---|---|
| Line 82 static void getfont1(FNTMNG fhdl, FNTDAT | Line 82 static void getfont1(FNTMNG fhdl, FNTDAT |
| const char *string, int length) { | const char *string, int length) { |
| int c; | int c; |
| const BYTE *src; | const UINT8 *src; |
| int width; | int width; |
| BYTE *dst; | UINT8 *dst; |
| int x; | int x; |
| int y; | int y; |
| Line 95 const BYTE *src; | Line 95 const BYTE *src; |
| src = ankfont + (c * ANKFONTSIZE); | src = ankfont + (c * ANKFONTSIZE); |
| width = *src++; | width = *src++; |
| setfdathead(fhdl, fdat, width); | setfdathead(fhdl, fdat, width); |
| dst = (BYTE *)(fdat + 1); | dst = (UINT8 *)(fdat + 1); |
| ZeroMemory(dst, fdat->width * fdat->height); | ZeroMemory(dst, fdat->width * fdat->height); |
| dst += ((fdat->height - ANKFONTSIZE) / 2) * fdat->width; | dst += ((fdat->height - ANKFONTSIZE) / 2) * fdat->width; |
| dst += (fdat->width - width) / 2; | dst += (fdat->width - width) / 2; |