summaryrefslogtreecommitdiffstatshomepage
path: root/src/mame/drivers/taito_f2.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/mame/drivers/taito_f2.cpp')
-rw-r--r--src/mame/drivers/taito_f2.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/mame/drivers/taito_f2.cpp b/src/mame/drivers/taito_f2.cpp
index bfcf2214bdd..8a42929eb21 100644
--- a/src/mame/drivers/taito_f2.cpp
+++ b/src/mame/drivers/taito_f2.cpp
@@ -5387,10 +5387,10 @@ void taitof2_state::init_finalb()
gfx_element *gx1 = m_gfxdecode->gfx(1);
// allocate memory for the assembled data
- u8 *srcdata = auto_alloc_array(machine(), u8, gx0->elements() * gx0->width() * gx0->height());
+ m_decoded_gfx = std::make_unique<u8[]>(gx0->elements() * gx0->width() * gx0->height());
// loop over elements
- u8 *dest = srcdata;
+ u8 *dest = m_decoded_gfx.get();
for (int c = 0; c < gx0->elements(); c++)
{
const u8 *c0base = gx0->get_data(c);
@@ -5412,7 +5412,7 @@ void taitof2_state::init_finalb()
}
}
- gx0->set_raw_layout(srcdata, gx0->width(), gx0->height(), gx0->elements(), 8 * gx0->width(), 8 * gx0->width() * gx0->height());
+ gx0->set_raw_layout(m_decoded_gfx.get(), gx0->width(), gx0->height(), gx0->elements(), 8 * gx0->width(), 8 * gx0->width() * gx0->height());
gx0->set_colors(4096 / 64);
gx0->set_granularity(64);
m_gfxdecode->set_gfx(1, nullptr);