From: Dirk Best

the latest changes in MAME 0.122u7 broke the screenless systems in
MESS. The attached patch fixes this.
This commit is contained in:
Aaron Giles 2008-01-29 16:37:58 +00:00
parent bd18da7d71
commit 839029d302
2 changed files with 11 additions and 9 deletions

View File

@ -265,15 +265,18 @@ INLINE tilemap *indexed_tilemap(int index)
void tilemap_init(running_machine *machine)
{
screen_width = Machine->screen[0].width;
screen_height = Machine->screen[0].height;
screen_width = machine->screen[0].width;
screen_height = machine->screen[0].height;
tilemap_list = NULL;
tilemap_tailptr = &tilemap_list;
tilemap_instance = 0;
priority_bitmap = auto_bitmap_alloc(screen_width, screen_height, BITMAP_FORMAT_INDEXED8);
add_exit_callback(machine, tilemap_exit);
if (screen_width != 0 && screen_height != 0)
{
tilemap_list = NULL;
tilemap_tailptr = &tilemap_list;
tilemap_instance = 0;
priority_bitmap = auto_bitmap_alloc(screen_width, screen_height, BITMAP_FORMAT_INDEXED8);
add_exit_callback(machine, tilemap_exit);
}
}

View File

@ -13,6 +13,5 @@ WRITE8_HANDLER( timeplt_flipscreen_w );
VIDEO_START( timeplt );
PALETTE_INIT( timeplt );
VIDEO_UPDATE( timeplt );
INTERRUPT_GEN( timeplt_interrupt );