From 4682c9e3fb1baa9f16ab1eab2372482a54b2af88 Mon Sep 17 00:00:00 2001 From: Toni Wilen Date: Tue, 27 May 2025 19:03:40 +0300 Subject: [PATCH] Fix interlace mode display height detection. --- drawing.cpp | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/drawing.cpp b/drawing.cpp index af90f018..6020a555 100644 --- a/drawing.cpp +++ b/drawing.cpp @@ -894,21 +894,21 @@ int get_custom_limits(int *pw, int *ph, int *pdx, int *pdy, int *prealh, int *hr if (interlace_seen) { for (;;) { - // if more than 1 long or short frames only: accept it, we may have double (non field) mode. - if (interlace_lof[0] >= 2 || interlace_lof[1] >= 2) { - break; + if (!currprefs.gfx_iscanlines) { + // if more than 1 long or short frames only: accept it, we may have double (non field) mode. + if (interlace_lof[0] >= 2 || interlace_lof[1] >= 2) { + break; + } } // wait for long frame if (interlace_lof[0] && interlace_lof[1]) { if (!lof_display) { return ret; } + break; } - interlace_count++; interlace_lof[lof_display]++; - if (interlace_count < 3) { - return ret; - } + return ret; } } else { interlace_count = 0; -- 2.47.3