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

Fix LOR

parent 252e539c
No related branches found
No related tags found
No related merge requests found
......@@ -443,6 +443,7 @@ static void internal_setwinsize(struct video_stats *vs, bool force)
w = vs->scrnwidth;
if (h < vs->scrnheight)
h = vs->scrnheight;
pthread_mutex_lock(&win_mutex);
pthread_mutex_lock(&vstatlock);
if (w == vstat.winwidth && h == vstat.winheight)
changed = force;
......@@ -452,18 +453,18 @@ static void internal_setwinsize(struct video_stats *vs, bool force)
}
if (changed) {
pthread_mutex_unlock(&vstatlock);
pthread_mutex_unlock(&win_mutex);
}
else {
pthread_mutex_lock(&win_mutex);
sdl.GetWindowSizeInPixels(win, &w, &h);
UPDATE_WINDOW_SIZE;
pthread_mutex_unlock(&win_mutex);
if (w != vs->winwidth || h != vs->winheight) {
vs->winwidth = w;
vs->winheight = h;
changed = true;
}
pthread_mutex_unlock(&vstatlock);
pthread_mutex_unlock(&win_mutex);
vstat.scaling = sdl_getscaling();
}
if (changed)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment