summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorPatric Stout <truebrain@openttd.org>2021-01-16 14:55:26 +0100
committerPatric Stout <github@truebrain.nl>2021-01-30 21:43:59 +0100
commita52d716c88925a6a55f91276c9b4007cdb9b6795 (patch)
treeac22d62b3c9bb841db22657d99124e59bb7a436f /src
parent5ae2c1552b33c677454eb8594ae32ae00efac6a5 (diff)
downloadopenttd-a52d716c88925a6a55f91276c9b4007cdb9b6795.tar.xz
Codechange: [SDL2] remove include-protection
This is already done by CMake: if SDL2 is not detected, this file is not included.
Diffstat (limited to 'src')
-rw-r--r--src/video/sdl2_v.cpp4
1 files changed, 0 insertions, 4 deletions
diff --git a/src/video/sdl2_v.cpp b/src/video/sdl2_v.cpp
index ede8a8486..919208399 100644
--- a/src/video/sdl2_v.cpp
+++ b/src/video/sdl2_v.cpp
@@ -7,8 +7,6 @@
/** @file sdl2_v.cpp Implementation of the SDL2 video driver. */
-#ifdef WITH_SDL2
-
#include "../stdafx.h"
#include "../openttd.h"
#include "../gfx_func.h"
@@ -962,5 +960,3 @@ Dimension VideoDriver_SDL::GetScreenSize() const
return { static_cast<uint>(mode.w), static_cast<uint>(mode.h) };
}
-
-#endif /* WITH_SDL2 */