From e419164b7e64421f82d1dc1a964801c2ba718870 Mon Sep 17 00:00:00 2001 From: dinkc64 <12570148+dinkc64@users.noreply.github.com> Date: Sat, 11 Jul 2015 13:12:47 +0000 Subject: [PATCH] d_armedf update, fix legion junk on screen --- src/burn/drv/pre90s/d_armedf.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/burn/drv/pre90s/d_armedf.cpp b/src/burn/drv/pre90s/d_armedf.cpp index 84c0f3457..400b748f4 100644 --- a/src/burn/drv/pre90s/d_armedf.cpp +++ b/src/burn/drv/pre90s/d_armedf.cpp @@ -996,12 +996,14 @@ static void draw_txt_layer(INT32 transp) sx = (sx << 3) - xoffset; sy = (sy << 3) - yoffset; if (scroll_type != 1) sx += 128; - if (sx >= 512) sx -= 512; + + sx &= 0xff; // fix for left-most characters in Kozure if (sx < -7 || sy < -7 || sx >= nScreenWidth || sy >= nScreenHeight) continue; INT32 attr = vram[ofst+ofsta] & 0xff; INT32 code = (vram[ofst] & 0xff) | ((attr & 3) << 8); + if (scroll_type == 3 && ofst < 0x12) continue; // ignore nb1414m4 params/fix text-garbage at the bottom of legion if (transp) { if (*flipscreen) {