Codechange: [SDL2] Move SDLSurface code to its own function

This increases readability, and allow future subdrivers to not
use SDLSurface to draw.
This commit is contained in:
Patric Stout
2021-02-11 09:34:10 +01:00
committed by Michael Lutz
parent 6098811b49
commit 0d58bc9384
2 changed files with 23 additions and 20 deletions

View File

@@ -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. */