diff --git a/devices/memctrl/platinum.cpp b/devices/memctrl/platinum.cpp index 4def10c..6704db9 100644 --- a/devices/memctrl/platinum.cpp +++ b/devices/memctrl/platinum.cpp @@ -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; diff --git a/devices/memctrl/platinum.h b/devices/memctrl/platinum.h index 68598f9..dec77ed 100644 --- a/devices/memctrl/platinum.h +++ b/devices/memctrl/platinum.h @@ -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);