From 5eac35f6fa66387859056a330bb212126846a2b6 Mon Sep 17 00:00:00 2001 From: Patrick Mackinlay Date: Mon, 23 Oct 2017 19:50:37 +0700 Subject: [PATCH] bt459: more debug side effects (#2743) (nw) --- src/devices/video/bt459.cpp | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) diff --git a/src/devices/video/bt459.cpp b/src/devices/video/bt459.cpp index 916685f85ee..b9ae57ab813 100644 --- a/src/devices/video/bt459.cpp +++ b/src/devices/video/bt459.cpp @@ -101,16 +101,21 @@ u8 bt459_device::get_component(rgb_t *arr, int index) switch (m_address_rgb) { case 0: // red component - m_address_rgb = 1; + if (!machine().side_effect_disabled()) + m_address_rgb = 1; return (m_command_2 & CR2524) == CR2524_RED ? arr[index].g() : arr[index].r(); case 1: // green component - m_address_rgb = 2; + if (!machine().side_effect_disabled()) + m_address_rgb = 2; return arr[index].g(); case 2: // blue component - m_address_rgb = 0; - m_address = (m_address + 1) & ADDRESS_MASK; + if (!machine().side_effect_disabled()) + { + m_address_rgb = 0; + m_address = (m_address + 1) & ADDRESS_MASK; + } return (m_command_2 & CR2524) == CR2524_BLUE ? arr[index].g() : arr[index].b(); }