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

Recalculate scaling when resize_window() is called in fullscreen mode.

parent 060aa72d
No related branches found
No related tags found
No related merge requests found
Pipeline #7885 passed
......@@ -1197,8 +1197,13 @@ static void resize_window()
* Don't allow resizing the window when we're in fullscreen mode
* or we're transitioning to/from fullscreen modes
*/
if (fullscreen || fullscreen_pending)
if (fullscreen || fullscreen_pending) {
if (x11_get_maxsize(&max_width, &max_height)) {
new_scaling = bitmap_double_mult_inside(max_width, max_height);
x_cvstat.scaling = vstat.scaling = new_scaling;
}
return;
}
// We can lokely use a rdlock() here, but there's no reason to risk it.
rwlock_wrlock(&vstatlock);
cio_api.mode = CIOLIB_MODE_X;
......
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