summaryrefslogtreecommitdiffstatshomepage
path: root/src/emu/drawgfx.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/emu/drawgfx.c')
-rw-r--r--src/emu/drawgfx.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/emu/drawgfx.c b/src/emu/drawgfx.c
index 74d289bbc0e..a43e0a674cf 100644
--- a/src/emu/drawgfx.c
+++ b/src/emu/drawgfx.c
@@ -473,8 +473,7 @@ void gfx_element::set_layout(const gfx_layout &gl, const UINT8 *srcdata)
}
// mark everything dirty
- m_dirty.resize(m_total_elements);
- memset(m_dirty, 1, m_total_elements);
+ m_dirty.resize_and_clear(m_total_elements, 1);
// allocate a pen usage array for entries with 32 pens or less
if (m_color_depth <= 32)