diff --git a/devices/memctrl/platinum.cpp b/devices/memctrl/platinum.cpp index 3eb1484..05698e8 100644 --- a/devices/memctrl/platinum.cpp +++ b/devices/memctrl/platinum.cpp @@ -444,6 +444,13 @@ void PlatinumCtrl::enable_display() { this->stop_refresh_task(); + if (this->active_width <= 0 || this->active_height <= 0 || this->pixel_clock <= 0) { + this->blank_on = true; + this->crtc_on = false; + this->blank_display(); + return; + } + this->refresh_rate = (double)(this->pixel_clock) / (this->hori_total * this->vert_total); this->start_refresh_task();