- added new screenshot format to be bmp (can be oveeriden by ini setting, and more formats may be added later) ScreenShotFileType=tga to revert to old default tga screenshots

This commit is contained in:
Mark Vejvoda
2010-10-29 22:18:23 +00:00
parent 27212dd962
commit 13c4deb5b6
3 changed files with 8 additions and 5 deletions

View File

@@ -506,10 +506,10 @@ void Pixmap2D::load(const string &path) {
void Pixmap2D::save(const string &path) {
string extension= path.substr(path.find_last_of('.')+1);
if(extension == "bmp") {
if(toLower(extension) == "bmp") {
saveBmp(path);
}
else if(extension == "tga") {
else if(toLower(extension) == "tga") {
saveTga(path);
}
else {