mirror of
https://github.com/dingusdev/dingusppc.git
synced 2025-08-10 06:24:59 +00:00
atirage: Force redraw if pixel format changes.
This commit is contained in:
@@ -396,8 +396,10 @@ void ATIRage::write_reg(uint32_t reg_offset, uint32_t value, uint32_t size) {
|
||||
}
|
||||
}
|
||||
|
||||
this->regs[reg_num] = new_value;
|
||||
if (bit_changed(old_value, new_value, ATI_CRTC_ENABLE)) {
|
||||
|
||||
if (bit_changed(old_value, new_value, ATI_CRTC_ENABLE)
|
||||
|| extract_bits(old_value, ATI_CRTC_PIX_WIDTH, ATI_CRTC_PIX_WIDTH_size) != extract_bits(new_value, ATI_CRTC_PIX_WIDTH, ATI_CRTC_PIX_WIDTH_size)
|
||||
) {
|
||||
draw_fb = true;
|
||||
if (bit_set(new_value, ATI_CRTC_ENABLE) &&
|
||||
!bit_set(new_value, ATI_CRTC_DISPLAY_DIS)) {
|
||||
|
Reference in New Issue
Block a user