From 5b727bc877b9b8efdea632defdb0f5aa3cfe9c4c Mon Sep 17 00:00:00 2001 From: hap Date: Sun, 8 Dec 2024 00:01:42 +0100 Subject: mcm70: fix bitmap array oob access --- src/mame/misc/mcm70.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/mame/misc/mcm70.cpp b/src/mame/misc/mcm70.cpp index 66e012a482e..7e80a6828f5 100644 --- a/src/mame/misc/mcm70.cpp +++ b/src/mame/misc/mcm70.cpp @@ -341,19 +341,19 @@ uint32_t mcm70_state::screen_update(screen_device &screen, bitmap_rgb32 &bitmap, } // gap around pixel - if (x < 222) + if (x < 221) { bitmap.pix(yl, xl + 3) = pen[0]; bitmap.pix(yl + 1, xl + 3) = pen[0]; bitmap.pix(yl + 2, xl + 3) = pen[0]; } - if (y < 7) + if (y < 6) { bitmap.pix(yl + 3, xl ) = pen[0]; bitmap.pix(yl + 3, xl + 1) = pen[0]; bitmap.pix(yl + 3, xl + 2) = pen[0]; } - if (x < 222 && y < 7) + if (x < 221 && y < 6) { bitmap.pix(yl + 3, xl + 3) = pen[0]; } @@ -383,7 +383,7 @@ void mcm70_state::mcm70(machine_config &config) screen.set_refresh_hz(60); screen.set_screen_update(FUNC(mcm70_state::screen_update)); screen.set_size(887, 27); - screen.set_visarea(0, 886, 0, 26); + screen.set_visarea_full(); PALETTE(config, m_palette, FUNC(mcm70_state::mcm70_palette), 5); } -- cgit v1.2.3