diff options
author | Jess Askey <jessaskey@users.noreply.github.com> | 2021-08-15 08:23:18 -0600 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-08-15 10:23:18 -0400 |
commit | ee07073837124bf9c10f82db0a96d7479cef8a92 (patch) | |
tree | 34fdf8d41579641c195e33d5d3d673ce8eb5f6ba | |
parent | 2c98a7806b61d9b142f770b9a858a6178337dbce (diff) |
avgdvg.cpp: support XY flip (#8444)
-rw-r--r-- | src/mame/video/avgdvg.cpp | 18 |
1 files changed, 13 insertions, 5 deletions
diff --git a/src/mame/video/avgdvg.cpp b/src/mame/video/avgdvg.cpp index 5b13113d39b..b40d5fd67ac 100644 --- a/src/mame/video/avgdvg.cpp +++ b/src/mame/video/avgdvg.cpp @@ -817,9 +817,13 @@ int avg_mhavoc_device::handler_7() // mhavoc_strobe3 const u8 g = bit1 * 0xcb; const u8 b = bit0 * 0xcb; + int x = m_xpos; + int y = m_ypos; + apply_flipping(x, y); + vg_add_point_buf( - m_xpos, - m_ypos, + x, + y, rgb_t(r, g, b), (((m_int_latch >> 1) == 1) ? m_intensity : m_int_latch & 0xe) << 4); m_spkl_shift = (BIT(m_spkl_shift, 6) ^ BIT(m_spkl_shift, 5) ^ 1) | (m_spkl_shift << 1); @@ -842,9 +846,13 @@ int avg_mhavoc_device::handler_7() // mhavoc_strobe3 const u8 g = bit1 * 0xcb; const u8 b = bit0 * 0xcb; - vg_add_point_buf( - m_xpos, - m_ypos, + int x = m_xpos; + int y = m_ypos; + apply_flipping(x, y); + + vg_add_point_buf( + x, + y, rgb_t(r, g, b), (((m_int_latch >> 1) == 1) ? m_intensity : m_int_latch & 0xe) << 4); } |