standalone: fix w/h confusion
authornotaz <notasas@gmail.com>
Sat, 6 Jan 2024 23:31:17 +0000 (01:31 +0200)
committernotaz <notasas@gmail.com>
Sat, 6 Jan 2024 23:31:17 +0000 (01:31 +0200)
frontend/menu.c

index 51cb377..6c669dc 100644 (file)
@@ -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);