summaryrefslogtreecommitdiffstatshomepage
path: root/src/mame/video
diff options
context:
space:
mode:
author hap <happppp@users.noreply.github.com>2021-08-25 12:31:42 +0200
committer hap <happppp@users.noreply.github.com>2021-08-25 12:31:42 +0200
commit3cadc4f688ba4172a1e19195c4999c0265bd3f53 (patch)
treeac50897a771de0fea957d0d3cb4a160c5e6f6ca9 /src/mame/video
parent2ec9b81c46d256d2c157620c61837828bc5cda8a (diff)
kncljoe: fix off-by-1 with sprite layer clip
Diffstat (limited to 'src/mame/video')
-rw-r--r--src/mame/video/kncljoe.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/mame/video/kncljoe.cpp b/src/mame/video/kncljoe.cpp
index 8293836e2ce..1edd294cf12 100644
--- a/src/mame/video/kncljoe.cpp
+++ b/src/mame/video/kncljoe.cpp
@@ -171,8 +171,8 @@ void kncljoe_state::draw_sprites( bitmap_ind16 &bitmap, const rectangle &cliprec
{
// clip vertical strip for each layer
rectangle clip = cliprect;
- clip.min_y = m_flipscreen ? (192 - i * 64) : (i * 64 + 1);
- clip.max_y = clip.min_y + 64;
+ clip.min_y = m_flipscreen ? (191 - i * 64) : (i * 64 + 1);
+ clip.max_y = clip.min_y + 63;
clip &= cliprect;
for (int j = 0x7c; j >= 0; j -= 4)
@@ -191,7 +191,7 @@ void kncljoe_state::draw_sprites( bitmap_ind16 &bitmap, const rectangle &cliprec
flipx = !flipx;
flipy = !flipy;
sx = 240 - sx;
- sy = 241 - sy;
+ sy = 240 - sy;
}
if (sx >= 256-8)