diff options
author | 2017-10-23 19:50:37 +0700 | |
---|---|---|
committer | 2017-10-23 23:50:36 +1100 | |
commit | 5eac35f6fa66387859056a330bb212126846a2b6 (patch) | |
tree | 3ead085a333ee211f15935917af5370769361ae9 | |
parent | affd4b4ca5cff7eca9e60d48ca0127c81a6e3163 (diff) |
bt459: more debug side effects (#2743) (nw)
-rw-r--r-- | src/devices/video/bt459.cpp | 13 |
1 files 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(); } |