mirror of
https://github.com/holub/mame
synced 2025-05-02 04:31:01 +03:00
fix daraku (mt 5122)
guess some refactoring changed the behaviour at some point, I assume this is what it was meant to be doing rather than trying to use a value it was in the middle of setting?
This commit is contained in:
parent
1999097a54
commit
490ef621b0
@ -333,8 +333,11 @@ void psikyosh_state::cache_bitmap(int scanline, gfx_element *gfx, int size, int
|
|||||||
if(tilebank != last_bank[sy])
|
if(tilebank != last_bank[sy])
|
||||||
{
|
{
|
||||||
rectangle cliprect;
|
rectangle cliprect;
|
||||||
|
int minsy = sy * 16;
|
||||||
|
int maxsy = minsy + 16 - 1;
|
||||||
|
|
||||||
cliprect.set(0, m_bg_bitmap.width() - 1, sy * 16, cliprect.min_y + 16 - 1);
|
cliprect.set(0, m_bg_bitmap.width() - 1, minsy, maxsy );
|
||||||
|
cliprect &= m_bg_bitmap.cliprect();
|
||||||
|
|
||||||
m_bg_bitmap.fill(BG_TRANSPEN, cliprect);
|
m_bg_bitmap.fill(BG_TRANSPEN, cliprect);
|
||||||
int width = size * 16;
|
int width = size * 16;
|
||||||
|
Loading…
Reference in New Issue
Block a user