summaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
author AJR <ajrhacker@users.noreply.github.com>2018-01-16 21:42:14 -0500
committer AJR <ajrhacker@users.noreply.github.com>2018-01-16 21:42:41 -0500
commite39e873875b98ee1cd4a0bc81226a9e56b169497 (patch)
tree64c4f5e94843af6f149a23134b3b6002c32aec0e
parent49c388843c3fa666ea684c2bc28b4e001e49cb92 (diff)
scn2674: Avert screen_device::update_partial assert failure during debugging in debug build (nw)
-rw-r--r--src/devices/video/scn2674.cpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/devices/video/scn2674.cpp b/src/devices/video/scn2674.cpp
index 8a3d1e5bf25..070cd82b3ab 100644
--- a/src/devices/video/scn2674.cpp
+++ b/src/devices/video/scn2674.cpp
@@ -287,7 +287,10 @@ void scn2674_device::write_init_regs(uint8_t data)
break;
}
- recompute_parameters();
+
+ // Don't reconfigure if the display isn't turned on (incomplete configurations may generate invalid screen parameters)
+ if (m_display_enabled)
+ recompute_parameters();
m_IR_pointer++;
if (m_IR_pointer>14)m_IR_pointer=14;