mirror of
https://github.com/holub/mame
synced 2025-04-25 17:56:43 +03:00
taitof3: initialize all allocated video RAM regions, prevents undeterministic behavior on startup
This commit is contained in:
parent
877e1dffce
commit
690f25a582
@ -578,11 +578,17 @@ VIDEO_START( f3 )
|
||||
state->m_f3_game_config=pCFG;
|
||||
|
||||
state->m_f3_vram = auto_alloc_array(machine, UINT16, 0x2000/2);
|
||||
memset(state->m_f3_vram, 0, 0x2000);
|
||||
state->m_f3_pf_data = auto_alloc_array(machine, UINT16, 0xc000/2);
|
||||
memset(state->m_f3_pf_data, 0, 0xc000);
|
||||
state->m_videoram = auto_alloc_array(machine, UINT16, 0x2000/2);
|
||||
memset(state->m_videoram, 0, 0x2000);
|
||||
state->m_f3_line_ram = auto_alloc_array(machine, UINT16, 0x10000/2);
|
||||
memset(state->m_f3_line_ram, 0, 0x10000);
|
||||
state->m_f3_pivot_ram = auto_alloc_array(machine, UINT16, 0x10000/2);
|
||||
memset(state->m_f3_pivot_ram, 0, 0x10000);
|
||||
state->m_spriteram = auto_alloc_array(machine, UINT16, 0x10000/2);
|
||||
memset(state->m_spriteram, 0, 0x10000);
|
||||
|
||||
if (state->m_f3_game_config->extend) {
|
||||
state->m_pf1_tilemap = tilemap_create(machine, get_tile_info1,tilemap_scan_rows,16,16,64,32);
|
||||
|
Loading…
Reference in New Issue
Block a user