diff options
Diffstat (limited to 'backends/graphics')
-rw-r--r-- | backends/graphics/opengl/opengl-graphics.cpp | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/backends/graphics/opengl/opengl-graphics.cpp b/backends/graphics/opengl/opengl-graphics.cpp index a01047e268..dfc8448d14 100644 --- a/backends/graphics/opengl/opengl-graphics.cpp +++ b/backends/graphics/opengl/opengl-graphics.cpp @@ -1323,10 +1323,12 @@ bool OpenGLGraphicsManager::saveScreenshot(const Common::String &filename) const #endif Graphics::Surface data; data.init(width, height, lineSize, &pixels.front(), format); + data.flipVertical(Common::Rect(width, height)); + #ifdef USE_PNG - return Image::writePNG(out, data, true); + return Image::writePNG(out, data); #else - return Image::writeBMP(out, data, true); + return Image::writeBMP(out, data); #endif } |