mirror of
https://github.com/dingusdev/dingusppc.git
synced 2024-09-27 19:54:46 +00:00
atirage: Redraw framebuffer if DAC or fb changes.
This commit is contained in:
parent
5f37421ceb
commit
d96da6434f
@ -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);
|
color_buf[1], color_buf[2], 0xFF);
|
||||||
this->dac_wr_index++; // auto-increment color index
|
this->dac_wr_index++; // auto-increment color index
|
||||||
this->comp_index = 0; // reset color component index
|
this->comp_index = 0; // reset color component index
|
||||||
|
draw_fb = true;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
@ -773,6 +774,8 @@ void ATIRage::crtc_update() {
|
|||||||
if (!need_recalc)
|
if (!need_recalc)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
|
this->draw_fb = true;
|
||||||
|
|
||||||
// calculate display refresh rate
|
// calculate display refresh rate
|
||||||
this->refresh_rate = pixel_clock / this->hori_total / this->vert_total;
|
this->refresh_rate = pixel_clock / this->hori_total / this->vert_total;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user