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,9 +265,11 @@ INLINE tilemap *indexed_tilemap(int index)
void tilemap_init(running_machine *machine) void tilemap_init(running_machine *machine)
{ {
screen_width = Machine->screen[0].width; screen_width = machine->screen[0].width;
screen_height = Machine->screen[0].height; screen_height = machine->screen[0].height;
if (screen_width != 0 && screen_height != 0)
{
tilemap_list = NULL; tilemap_list = NULL;
tilemap_tailptr = &tilemap_list; tilemap_tailptr = &tilemap_list;
tilemap_instance = 0; tilemap_instance = 0;
@ -275,6 +277,7 @@ void tilemap_init(running_machine *machine)
priority_bitmap = auto_bitmap_alloc(screen_width, screen_height, BITMAP_FORMAT_INDEXED8); priority_bitmap = auto_bitmap_alloc(screen_width, screen_height, BITMAP_FORMAT_INDEXED8);
add_exit_callback(machine, tilemap_exit); add_exit_callback(machine, tilemap_exit);
} }
}

View File

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