diff options
Diffstat (limited to 'src/video.h')
-rw-r--r-- | src/video.h | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/src/video.h b/src/video.h index 47aed627..313e6006 100644 --- a/src/video.h +++ b/src/video.h @@ -89,9 +89,14 @@ public: bool apply(const VideoSettings &settings); /** - * Handle a change in window size, possibly adjusting the scale. + * Handles a change in window size, possibly adjusting the scale. */ - void windowSizeChanged(int width, int height); + void updateWindowSize(); + + /** + * Present the next frame. + */ + void present(); const DisplayMode &desktopDisplayMode() const { @@ -111,4 +116,5 @@ private: std::vector<DisplayMode> mDisplayModes; std::unique_ptr<Graphics> mGraphics; SDL_Window *mWindow = nullptr; + bool mWindowShown = false; }; |