From 165f371e918f43bc67cf912e5d1625b80f867063 Mon Sep 17 00:00:00 2001 From: David Haywood Date: Fri, 27 Sep 2013 18:04:47 +0000 Subject: [PATCH] franticf appears to want this to wraparound (nw) if anybody knows the TMS32010 better it would help if they looked at the wheel input (should be a steering wheel + single button) because I can't see how it maps, the other input port isn't read. Maybe it generates an interrupt per tick or something? page flip implementation also still seems wrong for this game. --- src/mame/video/lethalj.c | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/src/mame/video/lethalj.c b/src/mame/video/lethalj.c index d42788d0549..7192c6f82be 100644 --- a/src/mame/video/lethalj.c +++ b/src/mame/video/lethalj.c @@ -134,12 +134,14 @@ void lethalj_state::do_blit() /* loop over X coordinates */ for (x = 0; x <= width; x++, sx++, dx++) - if (dx >= 0 && dx < BLITTER_DEST_WIDTH) - { - int pix = source[sx % BLITTER_SOURCE_WIDTH]; - if (pix) - dest[dx] = pix; - } + { + dx &= BLITTER_DEST_WIDTH -1 ; + + int pix = source[sx % BLITTER_SOURCE_WIDTH]; + if (pix) + dest[dx] = pix; + + } } } }