Mercurial > hg > dmlib
comparison vptest.c @ 77:c6cdaa675801
Add the file mode parameter to dmf_create_stdio() calls, and throw in some
cleanups.
author | Matti Hamalainen <ccr@tnsp.org> |
---|---|
date | Tue, 02 Oct 2012 05:52:35 +0300 |
parents | daeb5d4f6bad |
children | effbbb5e9744 |
comparison
equal
deleted
inserted
replaced
76:7d201aed1fd9 | 77:c6cdaa675801 |
---|---|
172 optFontFile, optFontSize, SDL_GetError()); | 172 optFontFile, optFontSize, SDL_GetError()); |
173 goto error_exit; | 173 goto error_exit; |
174 } | 174 } |
175 TTF_SetFontStyle(font, TTF_STYLE_NORMAL); | 175 TTF_SetFontStyle(font, TTF_STYLE_NORMAL); |
176 | 176 |
177 DMResource *res = dmf_create_stdio(optBitmapFilename); | 177 DMResource *res = dmf_create_stdio(optBitmapFilename, "rb"); |
178 if (res == NULL) | 178 if (res == NULL) |
179 { | 179 { |
180 dmError("Could not open resource file '%s'.\n", optBitmapFilename); | 180 dmError("Could not open resource file '%s'.\n", optBitmapFilename); |
181 goto error_exit; | 181 goto error_exit; |
182 } | 182 } |