summaryrefslogtreecommitdiff
path: root/src/render/graphics.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2013-09-08 15:39:39 +0300
committerAndrei Karas <akaras@inbox.ru>2013-09-08 15:39:39 +0300
commit6f51329225efbf5c435d087df3d3e855e93c62b6 (patch)
treea155ab6f2ce101cbfc5081d515720a32a5c357b4 /src/render/graphics.cpp
parent363bcc8b277f8c546d9bde4ec2eeae16bcd7f225 (diff)
downloadmv-6f51329225efbf5c435d087df3d3e855e93c62b6.tar.gz
mv-6f51329225efbf5c435d087df3d3e855e93c62b6.tar.bz2
mv-6f51329225efbf5c435d087df3d3e855e93c62b6.tar.xz
mv-6f51329225efbf5c435d087df3d3e855e93c62b6.zip
fix window resize from settings in SDL2.
Diffstat (limited to 'src/render/graphics.cpp')
-rw-r--r--src/render/graphics.cpp7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/render/graphics.cpp b/src/render/graphics.cpp
index 8a6c3e858..b33b9edcd 100644
--- a/src/render/graphics.cpp
+++ b/src/render/graphics.cpp
@@ -584,3 +584,10 @@ bool Graphics::calcImageRect(ImageVertexes *const vert,
BLOCK_END("Graphics::calcImageRect")
return 0;
}
+
+void Graphics::setWindowSize(const int width, const int height)
+{
+#ifdef USE_SDL2
+ SDL_SetWindowSize(mWindow, width, height);
+#endif
+}