From 0ec7c76017f2100df18a900edf439a5123a3f85e Mon Sep 17 00:00:00 2001 From: Shokunin <30949000+tetrisgm@users.noreply.github.com> Date: Thu, 22 Oct 2026 16:47:38 -0700 Subject: [PATCH] menu_video_snapshot_test: provide video_restart_bits Live resolution (#737) routes mh_restart_bits through main.cpp's backend-aware video_restart_bits; the fixture extracts mh_restart_bits alone, so it no longer compiled. Map it to the fixture's psx_host_video_restart_bits (no live resolution here). Co-Authored-By: Claude Opus 5.5 --- runtime/tests/test_menu_video_snapshot.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/runtime/tests/test_menu_video_snapshot.py b/runtime/tests/test_menu_video_snapshot.py index fbb877fa..5fc0c20b 100644 --- a/runtime/tests/test_menu_video_snapshot.py +++ b/runtime/tests/test_menu_video_snapshot.py @@ -31,6 +31,10 @@ extern "C" void psx_video_current(PsxHostVideoSettings *out) { extern "C" unsigned psx_host_video_restart_bits(const PsxHostVideoSettings *b,const PsxHostVideoSettings *n) { return b->renderer!=n->renderer ? PSX_VIDEO_RESTART_RENDERER : 0; } +/* main.cpp's backend-aware wrapper; no live resolution in this fixture. */ +static unsigned video_restart_bits(const PsxHostVideoSettings *b,const PsxHostVideoSettings *n) { + return psx_host_video_restart_bits(b,n); +} extern "C" unsigned psx_host_video_live_changes(const PsxHostVideoSettings *b,const PsxHostVideoSettings *n) { return b->texture_filter!=n->texture_filter ? PSX_VIDEO_LIVE_TEXTURE_FILTER : 0; }