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.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/src/emu/drawgfx.c b/src/emu/drawgfx.c
index cf5654394f1..aafb041581c 100644
--- a/src/emu/drawgfx.c
+++ b/src/emu/drawgfx.c
@@ -227,7 +227,7 @@ gfx_element *gfx_element_alloc(running_machine &machine, const gfx_layout *gl, c
gfx_element *gfx;
/* allocate memory for the gfx_element structure */
- gfx = auto_alloc_clear(machine, gfx_element);
+ gfx = auto_alloc_clear(machine, gfx_element(machine));
/* fill in the data */
gfx->width = width;
@@ -243,7 +243,6 @@ gfx_element *gfx_element_alloc(running_machine &machine, const gfx_layout *gl, c
gfx->total_colors = total_colors;
gfx->srcdata = srcdata;
- gfx->m_machine = &machine;
/* copy the layout */
gfx->layout = *gl;
@@ -379,8 +378,6 @@ void gfx_element_build_temporary(gfx_element *gfx, running_machine &machine, UIN
gfx->srcdata = base;
gfx->dirty = &not_dirty;
gfx->dirtyseq = 0;
-
- gfx->m_machine = &machine;
}