changeset 416:238e6baf01a8

Add bitmap and image input selectors to -i option.
author Matti Hamalainen <ccr@tnsp.org>
date Sat, 03 Nov 2012 03:55:17 +0200
parents d94f4bcb4be3
children 9ace8a5c58d9
files gfxconv.c
diffstat 1 files changed, 7 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/gfxconv.c	Sat Nov 03 03:50:42 2012 +0200
+++ b/gfxconv.c	Sat Nov 03 03:55:17 2012 +0200
@@ -87,7 +87,7 @@
 {
     { 0, '?', "help",         "Show this help", OPT_NONE },
     { 3, 'o', "output",       "Output filename", OPT_ARGREQ },
-    { 1, 'i', "informat",     "Set input format ([s]prite, [c]har, [b]itmap)", OPT_ARGREQ },
+    { 1, 'i', "informat",     "Set input format ([s]prite, [c]har, [b]itmap, [i]mage)", OPT_ARGREQ },
     { 2, 'm', "multicolor",   "Input is multicolor", OPT_NONE },
     { 4, 's', "skip",         "Skip bytes in input", OPT_ARGREQ },
     { 5, 'f', "format",       "Output format (see list below)", OPT_ARGREQ },
@@ -167,6 +167,12 @@
                 case 'c':
                     optInFormat = INFMT_CHAR;
                     break;
+                case 'b':
+                    optInFormat = INFMT_BITMAP;
+                    break;
+                case 'i':
+                    optInFormat = INFMT_IMAGE;
+                    break;
                 default:
                     dmError("Invalid input format '%s'.\n", optArg);
                     return FALSE;