Changeset - r28457:56b8cae2790d
[Not reviewed]
master
0 1 0
Patric Stout - 4 months ago 2024-01-14 22:41:51
truebrain@openttd.org
Fix: [SDL2] fullscreen always used the resolution of the first display (#11779)
1 file changed with 1 insertions and 1 deletions:
0 comments (0 inline, 0 general)
src/video/sdl2_v.cpp
Show inline comments
 
@@ -665,7 +665,7 @@ bool VideoDriver_SDL_Base::ToggleFullscr
 
	if (fullscreen) {
 
		/* Find fullscreen window size */
 
		SDL_DisplayMode dm;
 
		if (SDL_GetCurrentDisplayMode(0, &dm) < 0) {
 
		if (SDL_GetCurrentDisplayMode(SDL_GetWindowDisplayIndex(this->sdl_window), &dm) < 0) {
 
			Debug(driver, 0, "SDL_GetCurrentDisplayMode() failed: {}", SDL_GetError());
 
		} else {
 
			SDL_SetWindowSize(this->sdl_window, dm.w, dm.h);
0 comments (0 inline, 0 general)