summaryrefslogtreecommitdiff
path: root/src/render/graphics.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/render/graphics.cpp')
-rw-r--r--src/render/graphics.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/render/graphics.cpp b/src/render/graphics.cpp
index 409626c09..7e3687006 100644
--- a/src/render/graphics.cpp
+++ b/src/render/graphics.cpp
@@ -433,11 +433,13 @@ bool Graphics::resizeScreen(const int width, const int height)
mRect.h = height / mScale;
mWidth = width / mScale;
mHeight = height / mScale;
+ mActualWidth = width;
+ mActualHeight = height;
#ifdef USE_OPENGL
// +++ probably this way will not work in windows/mac
// Setup OpenGL
- glViewport(0, 0, mWidth, mHeight);
+ glViewport(0, 0, mActualWidth, mActualHeight);
glHint(GL_PERSPECTIVE_CORRECTION_HINT, GL_FASTEST);
#else
// +++ need impliment resize in soft mode