mirror of
https://github.com/holub/mame
synced 2025-07-03 17:08:39 +03:00
winrun_bitmap_draw (nw)
This commit is contained in:
parent
3cb3541fac
commit
08eaf9566e
@ -183,5 +183,6 @@ public:
|
||||
int init_dsp();
|
||||
void render_slave_output(uint16_t data);
|
||||
void winrun_flush_poly();
|
||||
void winrun_bitmap_draw(bitmap_ind16 &bitmap, const rectangle &cliprect);
|
||||
void init(int game_type);
|
||||
};
|
||||
|
@ -423,19 +423,9 @@ uint32_t namcos21_state::screen_update_driveyes(screen_device &screen, bitmap_in
|
||||
|
||||
}
|
||||
|
||||
uint32_t namcos21_state::screen_update_winrun(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect)
|
||||
void namcos21_state::winrun_bitmap_draw(bitmap_ind16 &bitmap, const rectangle &cliprect)
|
||||
{
|
||||
uint8_t *videoram = m_videoram.get();
|
||||
//int pivot = 3;
|
||||
//int pri;
|
||||
bitmap.fill(0xff, cliprect );
|
||||
|
||||
copy_visible_poly_framebuffer(bitmap, cliprect, 0x7fc0, 0x7ffe);
|
||||
|
||||
copy_visible_poly_framebuffer(bitmap, cliprect, 0, 0x7fbf);
|
||||
|
||||
|
||||
{ /* winrun bitmap layer */
|
||||
int yscroll = -cliprect.min_y+(int16_t)m_winrun_gpu_register[0x2/2];
|
||||
int base = 0x1000+0x100*(m_winrun_color&0xf);
|
||||
int sx,sy;
|
||||
@ -462,6 +452,16 @@ uint32_t namcos21_state::screen_update_winrun(screen_device &screen, bitmap_ind1
|
||||
}
|
||||
}
|
||||
}
|
||||
} /* winrun bitmap layer */
|
||||
}
|
||||
|
||||
|
||||
uint32_t namcos21_state::screen_update_winrun(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect)
|
||||
{
|
||||
bitmap.fill(0xff, cliprect );
|
||||
|
||||
copy_visible_poly_framebuffer(bitmap, cliprect, 0x7fc0, 0x7ffe);
|
||||
copy_visible_poly_framebuffer(bitmap, cliprect, 0, 0x7fbf);
|
||||
winrun_bitmap_draw(bitmap,cliprect);
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user