From d96da6434f2bd65dddce99a8bf9224ff2fec4c87 Mon Sep 17 00:00:00 2001 From: joevt Date: Sat, 20 Apr 2024 00:35:59 -0700 Subject: [PATCH] atirage: Redraw framebuffer if DAC or fb changes. --- devices/video/atirage.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/devices/video/atirage.cpp b/devices/video/atirage.cpp index 64187b9..31ee3b4 100644 --- a/devices/video/atirage.cpp +++ b/devices/video/atirage.cpp @@ -483,6 +483,7 @@ void ATIRage::write_reg(uint32_t reg_offset, uint32_t value, uint32_t size) { color_buf[1], color_buf[2], 0xFF); this->dac_wr_index++; // auto-increment color index this->comp_index = 0; // reset color component index + draw_fb = true; } } break; @@ -773,6 +774,8 @@ void ATIRage::crtc_update() { if (!need_recalc) return; + this->draw_fb = true; + // calculate display refresh rate this->refresh_rate = pixel_clock / this->hori_total / this->vert_total;