mirror of
https://github.com/dingusdev/dingusppc.git
synced 2025-08-15 09:27:27 +00:00
appleramdac: Reset comp_index on address change.
This commit is contained in:
@@ -60,6 +60,7 @@ void AppleRamdac::iodev_write(uint32_t address, uint16_t value) {
|
|||||||
switch(address) {
|
switch(address) {
|
||||||
case RamdacRegs::ADDRESS:
|
case RamdacRegs::ADDRESS:
|
||||||
this->dac_addr = value;
|
this->dac_addr = value;
|
||||||
|
this->comp_index = 0;
|
||||||
break;
|
break;
|
||||||
case RamdacRegs::CURSOR_CLUT:
|
case RamdacRegs::CURSOR_CLUT:
|
||||||
this->clut_color[this->comp_index++] = value;
|
this->clut_color[this->comp_index++] = value;
|
||||||
|
Reference in New Issue
Block a user