summaryrefslogtreecommitdiff
path: root/src/video/sdl2_v.h
diff options
context:
space:
mode:
authorPatric Stout <truebrain@openttd.org>2021-01-16 15:26:37 +0100
committerMichael Lutz <michi@icosahedron.de>2021-02-22 22:16:07 +0100
commit6098811b493c205797d7745e70db1e6f07879f72 (patch)
tree5845fcd60fe06f8d82b876f7a26283b2ca0de029 /src/video/sdl2_v.h
parent86c309ea75aecb47fc3b984462e07d62d0c70168 (diff)
downloadopenttd-6098811b493c205797d7745e70db1e6f07879f72.tar.xz
Codechange: [SDL2] Split Start() in a few more functions
This makes it a bit easier to follow what is going on, and allow future subdrivers to hook into a few of these functions. Reworked the code slighly while at it, to return early where possible.
Diffstat (limited to 'src/video/sdl2_v.h')
-rw-r--r--src/video/sdl2_v.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/video/sdl2_v.h b/src/video/sdl2_v.h
index 8c47d6aa0..35697991f 100644
--- a/src/video/sdl2_v.h
+++ b/src/video/sdl2_v.h
@@ -56,6 +56,7 @@ private:
void MainLoopCleanup();
bool CreateMainSurface(uint w, uint h, bool resize);
bool CreateMainWindow(uint w, uint h);
+ const char *Initialize();
#ifdef __EMSCRIPTEN__
/* Convert a constant pointer back to a non-constant pointer to a member function. */