Fix misleading debug print
This commit is contained in:
parent
e53b32fa57
commit
dfae69834a
1 changed files with 7 additions and 3 deletions
|
|
@ -703,9 +703,13 @@ void Session::updateOptimalWindowDisplayMode()
|
||||||
bestMode = desktopMode;
|
bestMode = desktopMode;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if ((SDL_GetWindowFlags(m_Window) & SDL_WINDOW_FULLSCREEN_DESKTOP) == SDL_WINDOW_FULLSCREEN) {
|
||||||
|
// Only print when the window is actually in full-screen exclusive mode,
|
||||||
|
// otherwise we're not actually using the mode we've set here
|
||||||
SDL_LogInfo(SDL_LOG_CATEGORY_APPLICATION,
|
SDL_LogInfo(SDL_LOG_CATEGORY_APPLICATION,
|
||||||
"Chosen best display mode: %dx%dx%d",
|
"Chosen best display mode: %dx%dx%d",
|
||||||
bestMode.w, bestMode.h, bestMode.refresh_rate);
|
bestMode.w, bestMode.h, bestMode.refresh_rate);
|
||||||
|
}
|
||||||
|
|
||||||
SDL_SetWindowDisplayMode(m_Window, &bestMode);
|
SDL_SetWindowDisplayMode(m_Window, &bestMode);
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue