summaryrefslogtreecommitdiff
path: root/src/video/sdl2_v.h
diff options
context:
space:
mode:
authorPatric Stout <truebrain@openttd.org>2021-01-24 11:54:36 +0100
committerPatric Stout <github@truebrain.nl>2021-01-30 21:43:59 +0100
commit19345908cba1bf12a138162b18d6db39662cb762 (patch)
tree00bb215eed0a3ebc396e7806327684beed55f04d /src/video/sdl2_v.h
parent8c37e5c5261bd624eabfa02a36ba41ffe6535b50 (diff)
downloadopenttd-19345908cba1bf12a138162b18d6db39662cb762.tar.xz
Codechange: [SDL2] Split away CreateMainWindow from CreateMainSurface
This makes the code a bit more readable, as both intentions are more clear, and there is less nesting in the main function.
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 de10543b5..a72325674 100644
--- a/src/video/sdl2_v.h
+++ b/src/video/sdl2_v.h
@@ -49,6 +49,7 @@ private:
void LoopOnce();
void MainLoopCleanup();
bool CreateMainSurface(uint w, uint h, bool resize);
+ bool CreateMainWindow(uint w, uint h);
#ifdef __EMSCRIPTEN__
/* Convert a constant pointer back to a non-constant pointer to a member function. */