Mercurial > hg > dmlib
changeset 161:0df62d4a1d1b
Fix DMFONT saving.
author | Matti Hamalainen <ccr@tnsp.org> |
---|---|
date | Sat, 06 Oct 2012 07:48:17 +0300 |
parents | 67d2cba58a87 |
children | 040e3bbce5ba |
files | dmtext_bm.c |
diffstat | 1 files changed, 3 insertions(+), 3 deletions(-) [+] |
line wrap: on
line diff
--- a/dmtext_bm.c Sat Oct 06 07:29:26 2012 +0300 +++ b/dmtext_bm.c Sat Oct 06 07:48:17 2012 +0300 @@ -324,7 +324,7 @@ dmf_write_le16(res, DMFONT_VERSION); dmf_write_le16(res, nglyphs); - dmf_write_le16(res, maxglyph); + dmf_write_le16(res, maxglyph + 1); dmfputc(font->width, res); dmfputc(font->height, res); @@ -356,8 +356,8 @@ // Each glyph has its table index and w/h stored dmf_write_le16(res, i); - dmf_write_le16(res, glyph->w); - dmf_write_le16(res, glyph->h); + dmfputc(glyph->w, res); + dmfputc(glyph->h, res); // Write the pixel data for (y = 0; y < glyph->h; y++)