avgdvg.cpp: support XY flip (#8444)

This commit is contained in:
Jess Askey 2021-08-15 08:23:18 -06:00 committed by GitHub
parent 2c98a7806b
commit ee07073837
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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);
}