summaryrefslogtreecommitdiffstatshomepage
path: root/src/mame/drivers/raiden2.cpp
diff options
context:
space:
mode:
author Miodrag Milanovic <mmicko@gmail.com>2015-12-19 11:06:06 +0100
committer Miodrag Milanovic <mmicko@gmail.com>2015-12-19 11:08:25 +0100
commit42adde9fd5658c8bdf1f24f1970072b8a7db0a54 (patch)
tree250107b6cdbe992c1a3569ec4dcedf4f706f94c0 /src/mame/drivers/raiden2.cpp
parent4facaf6c24e53a17be232c5c3cab31ecca2d0335 (diff)
auto_alloc_array_clear -> make_unique_clear (nw)
Diffstat (limited to 'src/mame/drivers/raiden2.cpp')
-rw-r--r--src/mame/drivers/raiden2.cpp18
1 files changed, 9 insertions, 9 deletions
diff --git a/src/mame/drivers/raiden2.cpp b/src/mame/drivers/raiden2.cpp
index c06b660c840..d6c01448171 100644
--- a/src/mame/drivers/raiden2.cpp
+++ b/src/mame/drivers/raiden2.cpp
@@ -479,15 +479,15 @@ TILE_GET_INFO_MEMBER(raiden2_state::get_text_tile_info)
VIDEO_START_MEMBER(raiden2_state,raiden2)
{
- back_data = auto_alloc_array_clear(machine(), UINT16, 0x800/2);
- fore_data = auto_alloc_array_clear(machine(), UINT16, 0x800/2);
- mid_data = auto_alloc_array_clear(machine(), UINT16, 0x800/2);
- text_data = auto_alloc_array_clear(machine(), UINT16, 0x1000/2);
-
- save_pointer(NAME(back_data), 0x800/2);
- save_pointer(NAME(fore_data), 0x800/2);
- save_pointer(NAME(mid_data), 0x800/2);
- save_pointer(NAME(text_data), 0x1000/2);
+ back_data = make_unique_clear<UINT16[]>(0x800/2);
+ fore_data = make_unique_clear<UINT16[]>(0x800/2);
+ mid_data = make_unique_clear<UINT16[]>(0x800/2);
+ text_data = make_unique_clear<UINT16[]>(0x1000/2);
+
+ save_pointer(NAME(back_data.get()), 0x800/2);
+ save_pointer(NAME(fore_data.get()), 0x800/2);
+ save_pointer(NAME(mid_data.get()), 0x800/2);
+ save_pointer(NAME(text_data.get()), 0x1000/2);
text_layer = &machine().tilemap().create(m_gfxdecode, tilemap_get_info_delegate(FUNC(raiden2_state::get_text_tile_info),this), TILEMAP_SCAN_ROWS, 8, 8, 64,32 );
background_layer = &machine().tilemap().create(m_gfxdecode, tilemap_get_info_delegate(FUNC(raiden2_state::get_back_tile_info),this), TILEMAP_SCAN_ROWS, 16,16, 32,32 );