Mercurial > hg > dmlib
comparison efu.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 | 93fbce0e6591 |
comparison
equal
deleted
inserted
replaced
76:7d201aed1fd9 | 77:c6cdaa675801 |
---|---|
334 goto error_exit; | 334 goto error_exit; |
335 } | 335 } |
336 TTF_SetFontStyle(font, TTF_STYLE_NORMAL); | 336 TTF_SetFontStyle(font, TTF_STYLE_NORMAL); |
337 | 337 |
338 | 338 |
339 DMResource *res = dmf_create_stdio(optBitmapFilename); | 339 DMResource *res = dmf_create_stdio(optBitmapFilename, "rb"); |
340 if (res == NULL) | 340 if (res == NULL) |
341 { | 341 { |
342 dmError("Could not open resource file '%s'.\n", optBitmapFilename); | 342 dmError("Could not open resource file '%s'.\n", optBitmapFilename); |
343 goto error_exit; | 343 goto error_exit; |
344 } | 344 } |