mirror of
https://github.com/holub/mame
synced 2025-04-27 02:33:13 +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,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);
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
@ -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 );
|
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user