Split windowed mode setter into its own function
This commit is contained in:
parent
9e356c40f4
commit
d920cf9bd1
2 changed files with 10 additions and 1 deletions
|
@ -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_);
|
||||
}
|
||||
|
||||
|
|
|
@ -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.
|
||||
*/
|
||||
|
|
Loading…
Add table
Reference in a new issue