From 2e3e65f3e7aa51f48d338df109ccbafa15849f4f Mon Sep 17 00:00:00 2001 From: dingusdev <52434309+dingusdev@users.noreply.github.com> Date: Wed, 21 Feb 2024 07:07:18 -0700 Subject: [PATCH] Moving vid_enable_seq Visual C complains about this being in the wrong place --- devices/memctrl/platinum.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/devices/memctrl/platinum.cpp b/devices/memctrl/platinum.cpp index 962c544..c5024e8 100644 --- a/devices/memctrl/platinum.cpp +++ b/devices/memctrl/platinum.cpp @@ -159,6 +159,8 @@ uint32_t PlatinumCtrl::read(uint32_t rgn_start, uint32_t offset, int size) { void PlatinumCtrl::write(uint32_t rgn_start, uint32_t offset, uint32_t value, int size) { + static uint8_t vid_enable_seq[] = {3, 2, 0}; + if (rgn_start == VRAM_REGION_BASE) { if (offset < this->vram_size) write_mem(&this->vram_ptr[offset], value, size); @@ -220,7 +222,6 @@ void PlatinumCtrl::write(uint32_t rgn_start, uint32_t offset, uint32_t value, in << (value ^ 7); break; case PlatinumReg::FB_RESET: - static uint8_t vid_enable_seq[] = {3, 2, 0}; if (value == 7 && this->crtc_on) { LOG_F(INFO, "%s: video disabled", this->name.c_str());