diff options
Diffstat (limited to 'backends/graphics/sdl/sdl-graphics.h')
-rw-r--r-- | backends/graphics/sdl/sdl-graphics.h | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/backends/graphics/sdl/sdl-graphics.h b/backends/graphics/sdl/sdl-graphics.h index 7f8790a9b4..937beef9b4 100644 --- a/backends/graphics/sdl/sdl-graphics.h +++ b/backends/graphics/sdl/sdl-graphics.h @@ -123,6 +123,17 @@ public: SdlWindow *getWindow() const { return _window; } protected: +#if SDL_VERSION_ATLEAST(2, 0, 0) +public: + void unlockWindowSize() { _allowWindowSizeReset = true; } + +protected: + Uint32 _lastFlags; + bool _allowWindowSizeReset; + + bool createOrUpdateWindow(const int width, const int height, const Uint32 flags); +#endif + SdlEventSource *_eventSource; SdlWindow *_window; }; |