1
0
Fork 0
mirror of https://github.com/opentx/opentx.git synced 2025-07-20 14:55:13 +03:00

Some improvements when french translations used

This commit is contained in:
bsongis 2012-01-24 20:28:01 +00:00
parent 1ee27fb979
commit 53ff8cc768
6 changed files with 37 additions and 34 deletions

View file

@ -167,11 +167,11 @@ void Gruvin9xSim::makeSnapshot(const FXDrawable* drawable)
// Save recovered pixels to a file
FXFileStream stream;
char buf[100];
sprintf(buf,"snapshot-%02d.png", ++g_snapshot_idx);
for(unsigned i=4; i<strlen(buf); i++)
{
if(!isalnum(buf[i]) && buf[i]!='.' ) buf[i]='_';
}
do {
stream.close();
sprintf(buf,"snapshot_%02d.png", ++g_snapshot_idx);
} while (stream.open(buf, FXStreamLoad));
if (stream.open(buf, FXStreamSave))
//if (stream.open("snapshot.png", FXStreamSave))