diff options
Diffstat (limited to 'src/sdlgraphics.cpp')
-rw-r--r-- | src/sdlgraphics.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/sdlgraphics.cpp b/src/sdlgraphics.cpp index dc56496e..a2fc2268 100644 --- a/src/sdlgraphics.cpp +++ b/src/sdlgraphics.cpp @@ -101,6 +101,7 @@ void SDLGraphics::updateSize(int windowWidth, int windowHeight, float scale) mWidth = std::ceil(mWidth / scaleX); mHeight = std::ceil(mHeight / scaleY); + mScale = scaleX; SDL_RenderSetScale(mRenderer, scaleX, scaleY); } |