From 56ecefb8316ad28f619322d86d2c324ee4e0ebf6 Mon Sep 17 00:00:00 2001 From: Mihawk <163614687+mihawk-99@users.noreply.github.com> Date: Sun, 11 Oct 2026 14:13:15 -0400 Subject: [PATCH] Menu code: the osd's calls parameter no longer clashes --- src/ps5_framegen_menu.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/ps5_framegen_menu.c b/src/ps5_framegen_menu.c index 20f29ed..1137102 100644 --- a/src/ps5_framegen_menu.c +++ b/src/ps5_framegen_menu.c @@ -182,7 +182,7 @@ void ps5_fg_menu_help(const char *label, char *s, size_t len) void ps5_fg_osd(bool plan, unsigned subframes, unsigned period, unsigned width, unsigned height, unsigned long generated, unsigned long unique, unsigned level, double gen_ms, unsigned long calls) { - static unsigned calls; + static unsigned osd_calls; const unsigned pictures = subframes / (ps5_fg_dup ? ps5_fg_dup : 1); static unsigned long presents, last_generated; static unsigned long gap_n[2], gap_off[2], last_unique, last_calls; @@ -279,7 +279,7 @@ void ps5_fg_osd(bool plan, unsigned subframes, unsigned period, unsigned width, last_generated = generated; last = t; } - if (++calls % 120) + if (++osd_calls % 120) return; ps5_fg_current(&now); if (!now.enable)