diff options
Diffstat (limited to 'src/render/graphics.cpp')
-rw-r--r-- | src/render/graphics.cpp | 7 |
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 +} |