Lost detection of SVG, so auto-scale stopped working; putting it back.
This commit is contained in:
parent
65ee095bb5
commit
9a80cb3689
1 changed files with 7 additions and 0 deletions
|
|
@ -6695,6 +6695,13 @@ static void loadstamp_callback(SDL_Surface * screen,
|
||||||
dotext - files[i].str + 1 + dirlen);
|
dotext - files[i].str + 1 + dirlen);
|
||||||
stamp_data[stamp_group][num_stamps[stamp_group]]->stampname[dotext - files[i].str +
|
stamp_data[stamp_group][num_stamps[stamp_group]]->stampname[dotext - files[i].str +
|
||||||
1 + dirlen] = '\0';
|
1 + dirlen] = '\0';
|
||||||
|
|
||||||
|
if (strcmp(ext, ".svg") == 0) {
|
||||||
|
stamp_data[stamp_group][num_stamps[stamp_group]]->is_svg = 1;
|
||||||
|
} else {
|
||||||
|
stamp_data[stamp_group][num_stamps[stamp_group]]->is_svg = 0;
|
||||||
|
}
|
||||||
|
|
||||||
num_stamps[stamp_group]++;
|
num_stamps[stamp_group]++;
|
||||||
}
|
}
|
||||||
free(files[i].str);
|
free(files[i].str);
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue