From 690f25a5820d733dca603e5be0a33e03a930f387 Mon Sep 17 00:00:00 2001 From: "R. Belmont" Date: Sat, 21 May 2011 22:27:42 +0000 Subject: [PATCH] taitof3: initialize all allocated video RAM regions, prevents undeterministic behavior on startup --- src/mame/video/taito_f3.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/mame/video/taito_f3.c b/src/mame/video/taito_f3.c index 23f6846f2c0..e9d83dce04f 100644 --- a/src/mame/video/taito_f3.c +++ b/src/mame/video/taito_f3.c @@ -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);