Mercurial > hg > dmlib
changeset 273:3b5493fac928
Cleanups.
author | Matti Hamalainen <ccr@tnsp.org> |
---|---|
date | Wed, 10 Oct 2012 20:45:10 +0300 |
parents | 64876c3cbcf3 |
children | 31e62b1f1b6e |
files | ppl.c |
diffstat | 1 files changed, 3 insertions(+), 5 deletions(-) [+] |
line wrap: on
line diff
--- a/ppl.c Wed Oct 10 20:38:56 2012 +0300 +++ b/ppl.c Wed Oct 10 20:45:10 2012 +0300 @@ -43,8 +43,7 @@ DMBitmapFont *font = NULL; -char *optFilename = NULL, - *optFontFilename = "c64font.png"; +char *optFilename = NULL; int optOutFormat = JSS_AUDIO_S16, optOutChannels = 2, optOutFreq = 48000, @@ -620,11 +619,10 @@ // Get font // file = dmf_create_stdio("fnsmall.fnt", "rb"); - file = dmf_open_memio(optFontFilename, dmPlayerFont, sizeof(dmPlayerFont)); + file = dmf_open_memio("pplfont.fnt", dmPlayerFont, sizeof(dmPlayerFont)); if (file == NULL) { - dmError("Error opening font file '%s', %d: %s\n", - optFontFilename, errno, strerror(errno)); + dmError("Error opening font file 'pplfont.fnt'.\n"); goto error_exit; } result = dmLoadBitmapFont(file, &font);