From ed43fa2b05bcf11ee9bf1e0a09a3ef9b94648091 Mon Sep 17 00:00:00 2001 From: Wilbert Pol Date: Mon, 10 Dec 2012 20:38:16 +0000 Subject: [PATCH] 315_5124.c: Fixed copy/paste error that caused FluBBa's "Offscreen Y, col" test to fail for the game gear vdp. [Enik Land] --- src/emu/video/315_5124.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/emu/video/315_5124.c b/src/emu/video/315_5124.c index d1d61b7e0bc..784c10c418f 100644 --- a/src/emu/video/315_5124.c +++ b/src/emu/video/315_5124.c @@ -290,6 +290,7 @@ void sega315_5124_device::device_timer(emu_timer &timer, device_timer_id id, int break; case TIMER_DRAW: + update_palette(); draw_scanline( SEGA315_5124_LBORDER_START + SEGA315_5124_LBORDER_WIDTH, param, m_screen->vpos() - param ); break; @@ -469,7 +470,7 @@ void sega315_5124_device::process_line_timer() /* Draw middle of the border */ /* We need to do this through the regular drawing function so it will */ /* be included in the gamegear scaling functions */ - select_sprites( vpos_limit, vpos - vpos_limit ); + select_sprites( vpos_limit + m_frame_timing[TOP_BORDER], vpos - (vpos_limit + m_frame_timing[TOP_BORDER]) ); draw_scanline( SEGA315_5124_LBORDER_START + SEGA315_5124_LBORDER_WIDTH, vpos_limit + m_frame_timing[TOP_BORDER], vpos - (vpos_limit + m_frame_timing[TOP_BORDER]) ); return; }