From 1ea7bcb2211e01fd34c629416c010378e40f553e Mon Sep 17 00:00:00 2001 From: notaz Date: Sun, 7 Jan 2024 01:31:17 +0200 Subject: [PATCH] standalone: fix w/h confusion --- frontend/menu.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/frontend/menu.c b/frontend/menu.c index 51cb3771..6c669dc3 100644 --- a/frontend/menu.c +++ b/frontend/menu.c @@ -1313,7 +1313,7 @@ static int menu_loop_cscaler(int id, int keys) for (;;) { if (saved_layer && last_vout_bpp == 16) { - int top_x = max(0, -g_layer_x * last_vout_h / 800) + 1; + int top_x = max(0, -g_layer_x * last_vout_w / 800) + 1; int top_y = max(0, -g_layer_y * last_vout_h / 480) + 1; char text[128]; memcpy(pl_vout_buf, saved_layer, saved_layer_size); -- 2.39.5