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

Call resize_window() after initing a mode, call XResizeWindow() if x_cvstat doesn't match cvstat.

parent f6628f54
No related branches found
No related tags found
1 merge request!463MRC mods by Codefenix (2024-10-20)
Pipeline #4242 passed
...@@ -476,7 +476,7 @@ static void resize_window() ...@@ -476,7 +476,7 @@ static void resize_window()
aspect_correct(&width, &height, x_cvstat.aspect_width, x_cvstat.aspect_height); aspect_correct(&width, &height, x_cvstat.aspect_width, x_cvstat.aspect_height);
pthread_mutex_lock(&vstatlock); pthread_mutex_lock(&vstatlock);
if (width == x_cvstat.winwidth && height == x_cvstat.winheight) { if (width == vstat.winwidth && height == vstat.winheight) {
pthread_mutex_unlock(&vstatlock); pthread_mutex_unlock(&vstatlock);
resize_xim(); resize_xim();
return; return;
...@@ -502,6 +502,7 @@ static void init_mode_internal(int mode) ...@@ -502,6 +502,7 @@ static void init_mode_internal(int mode)
last = NULL; last = NULL;
} }
bitmap_drv_init_mode(mode, NULL, NULL, mw, mh); bitmap_drv_init_mode(mode, NULL, NULL, mw, mh);
resize_window();
x_cvstat = vstat; x_cvstat = vstat;
pthread_mutex_unlock(&vstatlock); pthread_mutex_unlock(&vstatlock);
resize_xim(); resize_xim();
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment