Tools: map generator maintenance; added SVG output driver (from Jan Lönnberg, bug #1100); attempt to load fonts with various filename capitalization

git-svn-id: svn://svn.code.sf.net/p/sc2/code/trunk@3665 8092fc87-c524-0410-9efc-e669fe64eaf9
This commit is contained in:
avolkov
2011-08-03 20:27:14 +00:00
parent 35281c14c0
commit 62a291f2c2
7 changed files with 588 additions and 33 deletions
+4 -1
View File
@@ -30,10 +30,12 @@
#endif
extern const mg_driver_t sdlpng_drv;
extern const mg_driver_t sdlsvg_drv;
static const mg_driver_t* drvs[] =
{
&sdlpng_drv,
&sdlsvg_drv,
0 /* term */
};
static const mg_driver_t* drv;
@@ -355,7 +357,7 @@ static void usage()
static void parseArguments(int argc, char *argv[], options_t *opts)
{
char ch;
int ch;
opterr = 0;
memset(opts, 0, sizeof (options_t));
@@ -395,6 +397,7 @@ static void parseArguments(int argc, char *argv[], options_t *opts)
;
}
}
// TODO: this does not work with all versions of getopt()
optind = 1; // let the driver handle the rest
}