skeleton/bitgraph.cpp: Simplify screen update routine a little more
Some checks failed
CI (Linux) / build-linux (-U_FORTIFY_SOURCE, gcc, gcc, g++, mametiny, tiny) (push) Has been cancelled
CI (Linux) / build-linux (clang, clang, clang++, mame, mame) (push) Has been cancelled
CI (macOS) / build-macos (push) Has been cancelled
CI (Windows) / build-windows (clang, clang, clang++, mametiny, tiny) (push) Has been cancelled
CI (Windows) / build-windows (gcc, gcc, g++, mame, mame) (push) Has been cancelled
Build documentation / build-docs (push) Has been cancelled
XML/JSON validation / validate (push) Has been cancelled

This commit is contained in:
AJR 2024-09-26 08:00:45 -04:00
parent cb563f2ef9
commit defdbf3300

View file

@ -384,9 +384,9 @@ uint32_t bitgraph_state::screen_update(screen_device &screen, bitmap_ind16 &bitm
{
uint16_t *p = &bitmap.pix(y);
for (int x = 0; x < 1024 / 8; x += 2)
for (int x = 0; x < 1024 / 16; x++)
{
uint16_t gfx = m_videoram[(x >> 1) | (y << 6)];
uint16_t gfx = m_videoram[x | (y << 6)];
for (int i = 15; i >= 0; i--)
{
*p++ = BIT(gfx, i);