Skip to content
Snippets Groups Projects
Commit defc638c authored by Deucе's avatar Deucе :ok_hand_tone4:
Browse files

Check SDL window size when checking if size changed.

parent 12569e6d
Branches
No related tags found
1 merge request!463MRC mods by Codefenix (2024-10-20)
...@@ -487,6 +487,13 @@ static void internal_setwinsize(struct video_stats *vs, bool force) ...@@ -487,6 +487,13 @@ static void internal_setwinsize(struct video_stats *vs, bool force)
vs->winwidth = vstat.winwidth = w; vs->winwidth = vstat.winwidth = w;
vs->winheight = vstat.winheight = h; vs->winheight = vstat.winheight = h;
} }
if (!changed) {
pthread_mutex_lock(&win_mutex);
sdl.GetWindowSize(win, &w, &h);
pthread_mutex_unlock(&win_mutex);
if (w != vs->winwidth || h != vs->winheight)
changed = true;
}
pthread_mutex_unlock(&vstatlock); pthread_mutex_unlock(&vstatlock);
internal_scaling = window_can_scale_internally(vs); internal_scaling = window_can_scale_internally(vs);
if (changed) if (changed)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment