summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPatric Stout <truebrain@openttd.org>2021-01-24 11:28:13 +0100
committerPatric Stout <github@truebrain.nl>2021-01-30 21:43:59 +0100
commite41ec5b42eef7121f07a802178855b3854d857ee (patch)
tree6d12d4680b1d4d4e1b894fa705525d938a825ba5
parent678031f9b3f3dd56e6a40d08bdd74578f48a471d (diff)
downloadopenttd-e41ec5b42eef7121f07a802178855b3854d857ee.tar.xz
Codechange: [SDL2] Minor code cleanup to remove silly variable
-rw-r--r--src/video/sdl2_v.cpp5
1 files changed, 1 insertions, 4 deletions
diff --git a/src/video/sdl2_v.cpp b/src/video/sdl2_v.cpp
index a16061d5f..ce1917ccc 100644
--- a/src/video/sdl2_v.cpp
+++ b/src/video/sdl2_v.cpp
@@ -375,13 +375,10 @@ bool VideoDriver_SDL::CreateMainSurface(uint w, uint h, bool resize)
* appropriate event to know this. */
if (_fullscreen) _cursor.in_window = true;
- Blitter *blitter = BlitterFactory::GetCurrentBlitter();
- blitter->PostResize();
+ BlitterFactory::GetCurrentBlitter()->PostResize();
InitPalette();
-
GameSizeChanged();
-
return true;
}