summaryrefslogtreecommitdiff
path: root/src/opengl1graphics.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/opengl1graphics.cpp')
-rw-r--r--src/opengl1graphics.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/opengl1graphics.cpp b/src/opengl1graphics.cpp
index 3be9490ef..b04deedac 100644
--- a/src/opengl1graphics.cpp
+++ b/src/opengl1graphics.cpp
@@ -540,8 +540,8 @@ void OpenGL1Graphics::prepareScreenshot()
SDL_Surface* OpenGL1Graphics::getScreenshot()
{
- int h = mTarget->h;
- int w = mTarget->w;
+ const int h = mTarget->h;
+ const int w = mTarget->w - (mTarget->w % 4);
GLint pack = 1;
SDL_Surface *screenshot = SDL_CreateRGBSurface(