diff options
Diffstat (limited to 'backends/graphics/openglsdl/openglsdl-graphics.cpp')
-rw-r--r-- | backends/graphics/openglsdl/openglsdl-graphics.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/backends/graphics/openglsdl/openglsdl-graphics.cpp b/backends/graphics/openglsdl/openglsdl-graphics.cpp index 75e2cf8ef7..e41148062f 100644 --- a/backends/graphics/openglsdl/openglsdl-graphics.cpp +++ b/backends/graphics/openglsdl/openglsdl-graphics.cpp @@ -633,7 +633,11 @@ bool OpenGLSdlGraphicsManager::notifyEvent(const Common::Event &event) { for (int n = 0;; n++) { SDL_RWops *file; +#ifdef USE_PNG + filename = Common::String::format("scummvm%05d.png", n); +#else filename = Common::String::format("scummvm%05d.bmp", n); +#endif file = SDL_RWFromFile((screenshotsPath + filename).c_str(), "r"); |