Update Window.cc

This commit is contained in:
boost2017 2018-01-13 01:58:13 -05:00 committed by GitHub
parent a4164f698e
commit 05c60ad52f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -144,7 +144,7 @@ Window& Window::SetFullscreen(Uint32 flags) {
Window& Window::ToggleFullscreen() {
Uint32 const fullscreenFlag = SDL_WINDOW_FULLSCREEN | SDL_WINDOW_FULLSCREEN_DESKTOP;
bool const isFullscreen = SDL_GetWindowFlags(mpWindow) & fullscreenFlag;
bool const isFullscreen = SDL_GetWindowFlags(window_) & fullscreenFlag;
if (SDL_SetWindowFullscreen(window_, isFullscreen ? SDL_FALSE : SDL_WINDOW_FULLSCREEN_DESKTOP) != 0)
throw Exception("SDL_SetWindowFullscreen");
return *this;