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$
|
$Id$
|
||||||
|
|
||||||
2009.August.6 (0.9.22)
|
2009.August.7 (0.9.22)
|
||||||
|
* Other Improvements:
|
||||||
|
-------------------
|
||||||
|
* Starter images can be in SVG format.
|
||||||
|
|
||||||
* Localization Updates:
|
* Localization Updates:
|
||||||
---------------------
|
---------------------
|
||||||
* Chinese (Traditional) translation
|
* Chinese (Traditional) translation
|
||||||
|
|
|
||||||
|
|
@ -17937,6 +17937,9 @@ int do_new_dialog(void)
|
||||||
if (strcasestr(f->d_name, FNAME_EXTENSION) != NULL
|
if (strcasestr(f->d_name, FNAME_EXTENSION) != NULL
|
||||||
/* Support legacy BMP files for load: */
|
/* Support legacy BMP files for load: */
|
||||||
|| strcasestr(f->d_name, ".bmp") != NULL
|
|| strcasestr(f->d_name, ".bmp") != NULL
|
||||||
|
#ifndef NO_SVG
|
||||||
|
|| strcasestr(f->d_name, ".svg") != NULL
|
||||||
|
#endif
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
strcpy(fname, f->d_name);
|
strcpy(fname, f->d_name);
|
||||||
|
|
@ -17952,6 +17955,12 @@ int do_new_dialog(void)
|
||||||
d_exts[num_files] = strdup(".bmp");
|
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_names[num_files] = strdup(fname);
|
||||||
d_places[num_files] = place;
|
d_places[num_files] = place;
|
||||||
|
|
||||||
|
|
@ -17966,7 +17975,7 @@ int do_new_dialog(void)
|
||||||
if (img == NULL)
|
if (img == NULL)
|
||||||
{
|
{
|
||||||
/* No thumbnail in the new location ("saved/.thumbs"),
|
/* 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",
|
snprintf(fname, sizeof(fname), "%s/%s-t.png",
|
||||||
dirname[d_places[num_files]], d_names[num_files]);
|
dirname[d_places[num_files]], d_names[num_files]);
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue