diff options
author | 2015-12-17 11:10:30 +0100 | |
---|---|---|
committer | 2015-12-17 11:10:30 +0100 | |
commit | 174720a64ddeed98078139dc0e4dd7aed15f91d4 (patch) | |
tree | b22e4fb4f1a210751cadc5aa01d73113b8e9857f /src/devices/video/epic12.cpp | |
parent | be38cd71bb958d651ba91db8db439edc9c31b21e (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/devices/video/epic12.cpp')
-rw-r--r-- | src/devices/video/epic12.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/devices/video/epic12.cpp b/src/devices/video/epic12.cpp index fa9c8522198..fa168e5ac36 100644 --- a/src/devices/video/epic12.cpp +++ b/src/devices/video/epic12.cpp @@ -41,11 +41,11 @@ TIMER_CALLBACK_MEMBER( epic12_device::blitter_delay_callback ) void epic12_device::device_start() { m_gfx_size = 0x2000 * 0x1000; - m_bitmaps = auto_bitmap_rgb32_alloc(machine(), 0x2000, 0x1000); + m_bitmaps = std::make_unique<bitmap_rgb32>( 0x2000, 0x1000); m_clip = m_bitmaps->cliprect(); m_clip.set(0, 0x2000-1, 0, 0x1000-1); - m_ram16_copy = auto_alloc_array(machine(), UINT16, m_main_ramsize/2); + m_ram16_copy = std::make_unique<UINT16[]>(m_main_ramsize/2); m_blitter_delay_timer = machine().scheduler().timer_alloc(timer_expired_delegate(FUNC(epic12_device::blitter_delay_callback),this)); m_blitter_delay_timer->adjust(attotime::never); @@ -60,7 +60,7 @@ void epic12_device::device_reset() } else { - m_use_ram = m_ram16_copy; // slow mode + m_use_ram = m_ram16_copy.get(); // slow mode m_work_queue = osd_work_queue_alloc(WORK_QUEUE_FLAG_HIGH_FREQ); } @@ -186,7 +186,7 @@ inline void epic12_device::gfx_upload(offs_t *addr) } } -#define draw_params m_bitmaps, &m_clip, &m_bitmaps->pix(0,0),src_x,src_y, x,y, dimx,dimy, flipy, s_alpha, d_alpha, &tint_clr +#define draw_params m_bitmaps.get(), &m_clip, &m_bitmaps->pix(0,0),src_x,src_y, x,y, dimx,dimy, flipy, s_alpha, d_alpha, &tint_clr |