diff 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
line wrap: on
line diff
--- a/efu.c	Tue Oct 02 05:51:25 2012 +0300
+++ b/efu.c	Tue Oct 02 05:52:35 2012 +0300
@@ -336,7 +336,7 @@
     TTF_SetFontStyle(font, TTF_STYLE_NORMAL);
 
 
-    DMResource *res = dmf_create_stdio(optBitmapFilename);
+    DMResource *res = dmf_create_stdio(optBitmapFilename, "rb");
     if (res == NULL)
     {
         dmError("Could not open resource file '%s'.\n", optBitmapFilename);