mirror of
https://github.com/glest/glest-source.git
synced 2025-08-22 16:02:50 +02:00
- 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:
@@ -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 {
|
||||
|
Reference in New Issue
Block a user