From 7eb9a66837f7ca191c920b0c45527e78070464c4 Mon Sep 17 00:00:00 2001 From: joevt Date: Wed, 28 Feb 2024 16:09:02 -0800 Subject: [PATCH] atimach64gx: Calculate vert_blank. So it's not always zero. --- devices/video/atimach64gx.cpp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/devices/video/atimach64gx.cpp b/devices/video/atimach64gx.cpp index 310ed05..3e818d3 100644 --- a/devices/video/atimach64gx.cpp +++ b/devices/video/atimach64gx.cpp @@ -602,6 +602,12 @@ void AtiMach64Gx::crtc_update() need_recalc = true; } + uint32_t new_vert_blank = new_vtotal - new_height; + if (new_vert_blank != this->vert_blank) { + this->vert_blank = vert_blank; + need_recalc = true; + } + int new_pixel_format = this->dac_regs[Rgb514::PIX_FORMAT]; if (new_pixel_format != this->pixel_format) { this->pixel_format = new_pixel_format;