Split windowed mode setter into its own function

This commit is contained in:
Charles Dang 2016-01-03 04:34:00 +11:00
parent 9e356c40f4
commit d920cf9bd1
2 changed files with 10 additions and 1 deletions

View file

@ -80,9 +80,13 @@ void twindow::maximize()
SDL_MaximizeWindow(window_);
}
void twindow::restore()
void twindow::to_window()
{
SDL_SetWindowFullscreen(window_, 0);
}
void twindow::restore()
{
SDL_RestoreWindow(window_);
}

View file

@ -104,6 +104,11 @@ public:
*/
void restore();
/**
* Dummy function for returning the window to windowed mode.
*/
void to_window();
/**
* Dummy function for setting the window to fullscreen mode.
*/