mirror of
https://github.com/holub/mame
synced 2025-04-25 09:50:04 +03:00
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:
parent
bd18da7d71
commit
839029d302
@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
@ -13,6 +13,5 @@ WRITE8_HANDLER( timeplt_flipscreen_w );
|
||||
VIDEO_START( timeplt );
|
||||
PALETTE_INIT( timeplt );
|
||||
VIDEO_UPDATE( timeplt );
|
||||
INTERRUPT_GEN( timeplt_interrupt );
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user