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

Use max when we have it, only restore size/scaling in fullscreen mode

parent d8a5fd00
No related branches found
No related tags found
No related merge requests found
Pipeline #5893 passed
...@@ -799,7 +799,7 @@ static void map_window() ...@@ -799,7 +799,7 @@ static void map_window()
} }
sh->flags |= PMaxSize; sh->flags |= PMaxSize;
bitmap_get_scaled_win_size(x_cvstat.scaling, &sh->base_width, &sh->base_height, 0, 0); bitmap_get_scaled_win_size(x_cvstat.scaling, &sh->base_width, &sh->base_height, sh->max_width, sh->max_height);
sh->flags |= PBaseSize; sh->flags |= PBaseSize;
sh->width = sh->base_width; sh->width = sh->base_width;
...@@ -1200,9 +1200,11 @@ static void init_mode_internal(int mode) ...@@ -1200,9 +1200,11 @@ static void init_mode_internal(int mode)
os = vstat.scaling; os = vstat.scaling;
bitmap_drv_init_mode(mode, NULL, NULL, mw, mh); bitmap_drv_init_mode(mode, NULL, NULL, mw, mh);
x_cvstat = vstat; x_cvstat = vstat;
if (fullscreen) {
vstat.winwidth = ow; vstat.winwidth = ow;
vstat.winheight = oh; vstat.winheight = oh;
vstat.scaling = os; vstat.scaling = os;
}
pthread_mutex_unlock(&vstatlock); pthread_mutex_unlock(&vstatlock);
resize_window(); resize_window();
pthread_mutex_lock(&vstatlock); pthread_mutex_lock(&vstatlock);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment