platinum: Add disable_display.

To mirror enable_display.
This commit is contained in:
joevt 2024-02-18 18:00:27 -08:00 committed by dingusdev
parent fc89fec3e6
commit 97339e4ce4
2 changed files with 7 additions and 1 deletions

View File

@ -270,7 +270,7 @@ void PlatinumCtrl::write(uint32_t rgn_start, uint32_t offset, uint32_t value, in
LOG_F(INFO, "%s: video enabled", this->name.c_str());
this->enable_display();
} else {
this->blank_display();
this->disable_display();
}
this->reset_step = 0;
}
@ -461,6 +461,11 @@ void PlatinumCtrl::enable_display() {
this->crtc_on = true;
}
void PlatinumCtrl::disable_display() {
this->crtc_on = false;
this->blank_display();
}
void PlatinumCtrl::enable_cursor_int() {
if (!(this->swatch_int_mask & SWATCH_INT_CURSOR))
return;

View File

@ -222,6 +222,7 @@ public:
protected:
void enable_display();
void disable_display();
void enable_cursor_int();
void update_irq(uint8_t irq_line_state, uint8_t irq_mask);