Mercurial > hg > dmlib
diff ppl.c @ 359:59045853853d
Make resource management re-entrant.
author | Matti Hamalainen <ccr@tnsp.org> |
---|---|
date | Tue, 16 Oct 2012 21:25:46 +0300 |
parents | a991e4f0acfe |
children | 1bdd2af756ec |
line wrap: on
line diff
--- a/ppl.c Tue Oct 16 21:24:48 2012 +0300 +++ b/ppl.c Tue Oct 16 21:25:46 2012 +0300 @@ -633,7 +633,7 @@ // Get font // file = dmf_create_stdio("fnsmall.fnt", "rb"); - file = dmf_open_memio("pplfont.fnt", dmPlayerFont, sizeof(dmPlayerFont)); + file = dmf_create_memio(NULL, "pplfont.fnt", dmPlayerFont, sizeof(dmPlayerFont)); if (file == NULL) { dmError("Error opening font file 'pplfont.fnt'.\n");