diff options
author | Colin Snover | 2017-05-12 12:44:44 -0500 |
---|---|---|
committer | Colin Snover | 2017-05-21 15:55:39 -0500 |
commit | fa0bb7dd5a60c8f323ecbd5e190ad705bec3e934 (patch) | |
tree | 3d7006e16ca0aeeca20b85c7258e979ed07756cb /backends/graphics/openglsdl | |
parent | 71989715d02075ebedfd72e4ec5704b3beb91cca (diff) | |
download | scummvm-rg350-fa0bb7dd5a60c8f323ecbd5e190ad705bec3e934.tar.gz scummvm-rg350-fa0bb7dd5a60c8f323ecbd5e190ad705bec3e934.tar.bz2 scummvm-rg350-fa0bb7dd5a60c8f323ecbd5e190ad705bec3e934.zip |
BACKENDS: Compress screenshots using PNG if available
Closes gh-948.
Diffstat (limited to 'backends/graphics/openglsdl')
-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"); |