X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/a34ce03d63c10f555a63d593b257080fc070a26d..f901941933f6bad712e855476b90c169315f9391:/utils/screenshotgen/src/autocapture.cpp diff --git a/utils/screenshotgen/src/autocapture.cpp b/utils/screenshotgen/src/autocapture.cpp index 3977b036c7..1ad9723dbb 100644 --- a/utils/screenshotgen/src/autocapture.cpp +++ b/utils/screenshotgen/src/autocapture.cpp @@ -3,7 +3,7 @@ // Purpose: Implement wxCtrlMaskOut class // Author: Utensil Candel (UtensilCandel@@gmail.com) // RCS-ID: $Id$ -// Licence: wxWindows license +// Licence: wxWindows licence ///////////////////////////////////////////////////////////////////////////// // For compilers that support precompilation, includes "wx/wx.h". @@ -141,7 +141,8 @@ void AutoCaptureMechanism::Save(wxBitmap* screenshot, const wxString& fileName) if (!wxDirExists(default_dir)) wxMkdir(default_dir); - wxFileName fullFileName(default_dir, fileName + ".png"); + wxFileName fullFileName(default_dir, "appear-" + fileName + + "-" + wxPlatformInfo::Get().GetPortIdShortName() + ".png"); // do not overwrite already existing files with this name while (fullFileName.FileExists())