diff options
author | 2019-06-05 19:48:11 +0900 | |
---|---|---|
committer | 2019-06-05 19:48:11 +0900 | |
commit | f6375f506502b75e7263a850763dcc1f3b3e6c5a (patch) | |
tree | 350219beb2560d0f1dd67433cddf6bc43bcdabf5 /src | |
parent | e43c9e3d4b57e76a7a84dad2ba9a4d61667f2106 (diff) |
decmxc06.cpp : Fix disappearing
Diffstat (limited to 'src')
-rw-r--r-- | src/mame/video/decmxc06.cpp | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/src/mame/video/decmxc06.cpp b/src/mame/video/decmxc06.cpp index d78adb50a79..4ee3e9e868c 100644 --- a/src/mame/video/decmxc06.cpp +++ b/src/mame/video/decmxc06.cpp @@ -75,7 +75,7 @@ void deco_mxc06_device::draw_sprites(screen_device &screen, bitmap_ind16 &bitmap int flipx = data0 & 0x2000; parentFlipY = flipy = data0 & 0x4000; const int h = (1 << ((data0 & 0x1800) >> 11)); /* 1x, 2x, 4x, 8x height */ - const int w = (1 << ((data0 & 0x0600) >> 9)); /* 1x, 2x, 4x, 8x width */ + int w = (1 << ((data0 & 0x0600) >> 9)); /* 1x, 2x, 4x, 8x width */ int sx = data2 & 0x01ff; int sy = data0 & 0x01ff; @@ -145,10 +145,13 @@ void deco_mxc06_device::draw_sprites(screen_device &screen, bitmap_ind16 &bitmap } } chainoffs += 4; + } + while (w) + { + w--; offs += inc; if (offs == end) return; - } } } |