diff options
author | Patric Stout <truebrain@openttd.org> | 2021-02-11 09:34:10 +0100 |
---|---|---|
committer | Michael Lutz <michi@icosahedron.de> | 2021-02-22 22:16:07 +0100 |
commit | 0d58bc9384cbe95b696e852dbc47c4deaca6a025 (patch) | |
tree | aff9bd7e0bee10f4352024ff22e204c34dcbda37 /src/video/sdl2_v.h | |
parent | 6098811b493c205797d7745e70db1e6f07879f72 (diff) | |
download | openttd-0d58bc9384cbe95b696e852dbc47c4deaca6a025.tar.xz |
Codechange: [SDL2] Move SDLSurface code to its own function
This increases readability, and allow future subdrivers to not
use SDLSurface to draw.
Diffstat (limited to 'src/video/sdl2_v.h')
-rw-r--r-- | src/video/sdl2_v.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/video/sdl2_v.h b/src/video/sdl2_v.h index 35697991f..74d811aaf 100644 --- a/src/video/sdl2_v.h +++ b/src/video/sdl2_v.h @@ -57,6 +57,7 @@ private: bool CreateMainSurface(uint w, uint h, bool resize); bool CreateMainWindow(uint w, uint h); const char *Initialize(); + bool AllocateBackingStore(int w, int h, bool force = false); #ifdef __EMSCRIPTEN__ /* Convert a constant pointer back to a non-constant pointer to a member function. */ |