diff 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
line wrap: on
line diff
--- a/vptest.c	Tue Oct 02 05:51:25 2012 +0300
+++ b/vptest.c	Tue Oct 02 05:52:35 2012 +0300
@@ -174,7 +174,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);