NoGUI/SDL: Save and restore window geometry

This commit is contained in:
Connor McLaughlin
2021-05-11 15:24:37 +10:00
parent 8e9fbf63a3
commit e24a2aa6ac
2 changed files with 58 additions and 15 deletions

View File

@@ -32,6 +32,9 @@ protected:
private:
void HandleSDLEvent(const SDL_Event* event);
void GetSavedWindowGeometry(int* x, int* y, int* width, int* height);
void SaveWindowGeometry();
SDL_Window* m_window = nullptr;
bool m_fullscreen = false;
bool m_was_paused_by_focus_loss = false;