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:
parent
1ee27fb979
commit
53ff8cc768
6 changed files with 37 additions and 34 deletions
10
src/simu.cpp
10
src/simu.cpp
|
@ -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))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue