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:
David Haywood 2013-03-14 08:32:55 +00:00
parent 1999097a54
commit 490ef621b0

View File

@ -333,8 +333,11 @@ void psikyosh_state::cache_bitmap(int scanline, gfx_element *gfx, int size, int
if(tilebank != last_bank[sy])
{
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);
int width = size * 16;