diff options
author | 2011-04-19 06:02:01 +0000 | |
---|---|---|
committer | 2011-04-19 06:02:01 +0000 | |
commit | d971ce8f36eb00f27da0c2ef8c8b280d568db58c (patch) | |
tree | 70f11c500fa64702e29c0a502ec1941bf8610625 /src/emu/drawgfx.c | |
parent | 3628e7eaedd083da8d876a618a0af8486b114c55 (diff) |
Privatized most of the m_machine pointers in the system to prevent
direct use.
Diffstat (limited to 'src/emu/drawgfx.c')
-rw-r--r-- | src/emu/drawgfx.c | 5 |
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 = ¬_dirty; gfx->dirtyseq = 0; - - gfx->m_machine = &machine; } |