From: notaz Date: Sat, 6 Jan 2024 23:31:17 +0000 (+0200) Subject: standalone: fix w/h confusion X-Git-Tag: r24l~7 X-Git-Url: https://notaz.gp2x.de/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=bff52357698a47cef2e6deb91a6c004eb6efe2bc;p=pcsx_rearmed.git standalone: fix w/h confusion --- 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);