From 03f9dcd38db0a10d3fe03789d69b1393789eac08 Mon Sep 17 00:00:00 2001 From: Ville Linde Date: Sat, 8 Sep 2012 14:46:39 +0000 Subject: [PATCH] k001604: Set tilemap origin based on cliprect. --- src/mame/video/konicdev.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/mame/video/konicdev.c b/src/mame/video/konicdev.c index ba5accc953c..07130be662b 100644 --- a/src/mame/video/konicdev.c +++ b/src/mame/video/konicdev.c @@ -10354,6 +10354,12 @@ void k001604_draw_front_layer( device_t *device, bitmap_rgb32 &bitmap, const rec { k001604_state *k001604 = k001604_get_safe_token(device); + k001604->layer_8x8[0]->set_scrollx(-cliprect.min_x); + k001604->layer_8x8[0]->set_scrolly(-cliprect.min_y); + + k001604->layer_8x8[1]->set_scrollx(-cliprect.min_x); + k001604->layer_8x8[1]->set_scrolly(-cliprect.min_y); + //k001604->layer_8x8[1]->draw(bitmap, cliprect, 0,0); k001604->layer_8x8[0]->draw(bitmap, cliprect, 0,0); }