Starter images can be in SVG format.
This commit is contained in:
parent
e285128157
commit
62b5af5624
2 changed files with 15 additions and 2 deletions
|
|
@ -8,7 +8,11 @@ http://www.tuxpaint.org/
|
|||
|
||||
$Id$
|
||||
|
||||
2009.August.6 (0.9.22)
|
||||
2009.August.7 (0.9.22)
|
||||
* Other Improvements:
|
||||
-------------------
|
||||
* Starter images can be in SVG format.
|
||||
|
||||
* Localization Updates:
|
||||
---------------------
|
||||
* Chinese (Traditional) translation
|
||||
|
|
|
|||
|
|
@ -17937,6 +17937,9 @@ int do_new_dialog(void)
|
|||
if (strcasestr(f->d_name, FNAME_EXTENSION) != NULL
|
||||
/* Support legacy BMP files for load: */
|
||||
|| strcasestr(f->d_name, ".bmp") != NULL
|
||||
#ifndef NO_SVG
|
||||
|| strcasestr(f->d_name, ".svg") != NULL
|
||||
#endif
|
||||
)
|
||||
{
|
||||
strcpy(fname, f->d_name);
|
||||
|
|
@ -17952,6 +17955,12 @@ int do_new_dialog(void)
|
|||
d_exts[num_files] = strdup(".bmp");
|
||||
}
|
||||
|
||||
if (strcasestr(fname, ".svg") != NULL)
|
||||
{
|
||||
strcpy((char *) strcasestr(fname, ".svg"), "");
|
||||
d_exts[num_files] = strdup(".svg");
|
||||
}
|
||||
|
||||
d_names[num_files] = strdup(fname);
|
||||
d_places[num_files] = place;
|
||||
|
||||
|
|
@ -17966,7 +17975,7 @@ int do_new_dialog(void)
|
|||
if (img == NULL)
|
||||
{
|
||||
/* No thumbnail in the new location ("saved/.thumbs"),
|
||||
try the old locatin ("saved/"): */
|
||||
try the old location ("saved/"): */
|
||||
|
||||
snprintf(fname, sizeof(fname), "%s/%s-t.png",
|
||||
dirname[d_places[num_files]], d_names[num_files]);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue