diff options
author | 2020-09-06 06:53:07 +0900 | |
---|---|---|
committer | 2020-09-05 17:53:07 -0400 | |
commit | d39d1b94124e19f354184c7f00dea397e4e92830 (patch) | |
tree | 48ad8baeb2b2ad2cc7d23c3671281316e69143c5 | |
parent | 4b5db3bb731612954869ed4bd4d52e3edc2f82fb (diff) |
deco_mlc.cpp: Fix invisible pixel issue in vertical zooming algorithm (#7184)
- Fix invisible pixel issue in vertical zooming
- Reduce unnecessary line check
-rw-r--r-- | src/mame/video/deco_mlc.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/mame/video/deco_mlc.cpp b/src/mame/video/deco_mlc.cpp index d97042779cf..40631a9622a 100644 --- a/src/mame/video/deco_mlc.cpp +++ b/src/mame/video/deco_mlc.cpp @@ -426,15 +426,15 @@ void deco_mlc_state::draw_sprites(const rectangle &cliprect, int scanline, u32* if (bby < 0) continue; - if (bby >= full_sprite_screen_height >> 16) - continue; - // color = machine().rand(); int srcline = ((bby << 16) / ratio); const int by = srcline >> 4; + if (by >= h) + continue; + srcline &= 0xf; if (fy) { |