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

Use vstat.scaling not x_cvstat.scaling to scale to screen.

Also, do not try to display frames where the scaled height or width
is less than the frame bitmap height or width.
parent cf317d5d
No related branches found
No related tags found
1 merge request!463MRC mods by Codefenix (2024-10-20)
Pipeline #4285 passed
...@@ -601,8 +601,12 @@ local_draw_rect(struct rectlist *rect) ...@@ -601,8 +601,12 @@ local_draw_rect(struct rectlist *rect)
// Scale... // Scale...
pthread_mutex_lock(&vstatlock); pthread_mutex_lock(&vstatlock);
bitmap_get_scaled_win_size(x_cvstat.scaling, &w, &h, vstat.winwidth, vstat.winheight); bitmap_get_scaled_win_size(vstat.scaling, &w, &h, vstat.winwidth, vstat.winheight);
pthread_mutex_unlock(&vstatlock); pthread_mutex_unlock(&vstatlock);
if (w < rect->rect.width || h < rect->rect.height) {
bitmap_drv_free_rect(rect);
return;
}
source = do_scale(rect, w, h); source = do_scale(rect, w, h);
bitmap_drv_free_rect(rect); bitmap_drv_free_rect(rect);
if (source == NULL) if (source == NULL)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment