From 46854fdc1f397b1baf56bc39d0a5ca9ed42dbe78 Mon Sep 17 00:00:00 2001 From: Martin Donlon Date: Tue, 12 Jul 2022 12:47:50 -0700 Subject: [PATCH] video: Tweak front and back porch calculations (#656) --- video.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/video.cpp b/video.cpp index 2958c00..59444d1 100644 --- a/video.cpp +++ b/video.cpp @@ -3140,9 +3140,9 @@ static void video_calculate_cvt_int(int h_pixels, int v_lines, float refresh_rat vmode->param.hs = h_sync; vmode->param.hbp = h_back_porch; vmode->param.vact = v_lines; - vmode->param.vfp = V_FRONT_PORCH; + vmode->param.vfp = V_FRONT_PORCH - 1; vmode->param.vs = v_sync; - vmode->param.vbp = v_back_porch; + vmode->param.vbp = v_back_porch + 1; vmode->param.rb = reduced_blanking ? 1 : 0; vmode->Fpix = pixel_freq;