diff options
author | 2015-12-19 11:06:06 +0100 | |
---|---|---|
committer | 2015-12-19 11:08:25 +0100 | |
commit | 42adde9fd5658c8bdf1f24f1970072b8a7db0a54 (patch) | |
tree | 250107b6cdbe992c1a3569ec4dcedf4f706f94c0 /src/emu/video | |
parent | 4facaf6c24e53a17be232c5c3cab31ecca2d0335 (diff) |
auto_alloc_array_clear -> make_unique_clear (nw)
Diffstat (limited to 'src/emu/video')
-rw-r--r-- | src/emu/video/vector.cpp | 4 | ||||
-rw-r--r-- | src/emu/video/vector.h | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/src/emu/video/vector.cpp b/src/emu/video/vector.cpp index bcc3b3604b9..36c303eda42 100644 --- a/src/emu/video/vector.cpp +++ b/src/emu/video/vector.cpp @@ -163,7 +163,7 @@ void vector_device::device_start() m_vector_index = 0; /* allocate memory for tables */ - m_vector_list = auto_alloc_array_clear(machine(), point, MAX_POINTS); + m_vector_list = make_unique_clear<point[]>(MAX_POINTS); } void vector_device::set_flicker(float newval) @@ -306,7 +306,7 @@ UINT32 vector_device::screen_update(screen_device &screen, bitmap_rgb32 &bitmap, int lastx = 0; int lasty = 0; - curpoint = m_vector_list; + curpoint = m_vector_list.get(); screen.container().empty(); screen.container().add_rect(0.0f, 0.0f, 1.0f, 1.0f, rgb_t(0xff,0x00,0x00,0x00), PRIMFLAG_BLENDMODE(BLENDMODE_ALPHA) | PRIMFLAG_VECTORBUF(1)); diff --git a/src/emu/video/vector.h b/src/emu/video/vector.h index 37a1587d01e..9ec843b76fe 100644 --- a/src/emu/video/vector.h +++ b/src/emu/video/vector.h @@ -65,7 +65,7 @@ private: static float m_beam_width_min; static float m_beam_width_max; static float m_beam_intensity_weight; - point *m_vector_list; + std::unique_ptr<point[]> m_vector_list; static int m_vector_index; int m_min_intensity; int m_max_intensity; |