summaryrefslogtreecommitdiffstatshomepage
path: root/src/mame/drivers/cubeqst.cpp
diff options
context:
space:
mode:
author Miodrag Milanovic <mmicko@gmail.com>2015-12-17 11:10:30 +0100
committer Miodrag Milanovic <mmicko@gmail.com>2015-12-17 11:10:30 +0100
commit174720a64ddeed98078139dc0e4dd7aed15f91d4 (patch)
treeb22e4fb4f1a210751cadc5aa01d73113b8e9857f /src/mame/drivers/cubeqst.cpp
parentbe38cd71bb958d651ba91db8db439edc9c31b21e (diff)
removed auto_bitmap_ind*_alloc and auto_bitmap_rgb32_alloc and replaced with std::unique_ptr (nw)
auto_alloc_array to unique_ptr Added make_unique_clear
Diffstat (limited to 'src/mame/drivers/cubeqst.cpp')
-rw-r--r--src/mame/drivers/cubeqst.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/mame/drivers/cubeqst.cpp b/src/mame/drivers/cubeqst.cpp
index 7cb464c2e45..6ed299afaef 100644
--- a/src/mame/drivers/cubeqst.cpp
+++ b/src/mame/drivers/cubeqst.cpp
@@ -39,7 +39,7 @@ public:
m_screen(*this, "screen"),
m_generic_paletteram_16(*this, "paletteram") { }
- UINT8 *m_depth_buffer;
+ std::unique_ptr<UINT8[]> m_depth_buffer;
int m_video_field;
UINT8 m_io_latch;
UINT8 m_reset_latch;
@@ -96,7 +96,7 @@ public:
void cubeqst_state::video_start()
{
m_video_field = 0;
- m_depth_buffer = auto_alloc_array(machine(), UINT8, 512);
+ m_depth_buffer = std::make_unique<UINT8[]>(512);
}
WRITE16_MEMBER(cubeqst_state::palette_w)
@@ -130,7 +130,7 @@ UINT32 cubeqst_state::screen_update_cubeqst(screen_device &screen, bitmap_rgb32
UINT32 pen;
/* Zap the depth buffer */
- memset(m_depth_buffer, 0xff, 512);
+ memset(m_depth_buffer.get(), 0xff, 512);
/* Process all the spans on this scanline */
if (y < 256)