From 27de1601aa4a952d9555cc9b1aba8630f9043af4 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Sat, 3 Mar 2012 18:49:40 +0300 Subject: Fix incorrect screenshots issue in opengl mode. --- src/opengl1graphics.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/opengl1graphics.cpp') 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( -- cgit v1.2.3-60-g2f50