From 3483bebdb4bbe6c7ef240651dba32a6170c602c5 Mon Sep 17 00:00:00 2001 From: joevt Date: Thu, 25 Apr 2024 05:48:58 -0700 Subject: [PATCH] ati: Fix ver_blank calculation. --- devices/video/atimach64gx.cpp | 2 +- devices/video/atirage.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/devices/video/atimach64gx.cpp b/devices/video/atimach64gx.cpp index a9bea61..e6cab6d 100644 --- a/devices/video/atimach64gx.cpp +++ b/devices/video/atimach64gx.cpp @@ -688,7 +688,7 @@ void AtiMach64Gx::crtc_update() uint32_t new_vert_blank = new_vtotal - new_height; if (new_vert_blank != this->vert_blank) { - this->vert_blank = vert_blank; + this->vert_blank = new_vert_blank; need_recalc = true; } diff --git a/devices/video/atirage.cpp b/devices/video/atirage.cpp index 57fe2e5..14d88a2 100644 --- a/devices/video/atirage.cpp +++ b/devices/video/atirage.cpp @@ -724,7 +724,7 @@ void ATIRage::crtc_update() { uint32_t new_vert_blank = new_vtotal - new_height; if (new_vert_blank != this->vert_blank) { - this->vert_blank = vert_blank; + this->vert_blank = new_vert_blank; need_recalc = true; }