diff options
author | Johannes Schickel | 2011-03-17 20:43:59 +0100 |
---|---|---|
committer | Johannes Schickel | 2011-03-17 21:20:20 +0100 |
commit | 83c638ad02709b39d72c5c575b3683bfd76dbbaa (patch) | |
tree | 3a234c8f7761ac251ade310e097b0cdc14715a60 /backends/graphics | |
parent | 8d35d91bdf3eab421233c6b971d6dec39b2f45b0 (diff) | |
download | scummvm-rg350-83c638ad02709b39d72c5c575b3683bfd76dbbaa.tar.gz scummvm-rg350-83c638ad02709b39d72c5c575b3683bfd76dbbaa.tar.bz2 scummvm-rg350-83c638ad02709b39d72c5c575b3683bfd76dbbaa.zip |
OPENGL: Setup the correct header size for BMP screenshots.
This fixes an color bug in the resulting screenshots.
Diffstat (limited to 'backends/graphics')
-rw-r--r-- | backends/graphics/opengl/opengl-graphics.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/backends/graphics/opengl/opengl-graphics.cpp b/backends/graphics/opengl/opengl-graphics.cpp index e0c65dd309..f737d49141 100644 --- a/backends/graphics/opengl/opengl-graphics.cpp +++ b/backends/graphics/opengl/opengl-graphics.cpp @@ -1338,9 +1338,9 @@ bool OpenGLGraphicsManager::saveScreenshot(const char *filename) { // Write BMP header out.writeByte('B'); out.writeByte('M'); - out.writeUint32LE(height * width * 3 + 52); + out.writeUint32LE(height * width * 3 + 54); out.writeUint32LE(0); - out.writeUint32LE(52); + out.writeUint32LE(54); out.writeUint32LE(40); out.writeUint32LE(width); out.writeUint32LE(height); |