From 6f51329225efbf5c435d087df3d3e855e93c62b6 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Sun, 8 Sep 2013 15:39:39 +0300 Subject: fix window resize from settings in SDL2. --- src/render/graphics.cpp | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'src/render/graphics.cpp') 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 +} -- cgit v1.2.3-70-g09d2