Previous 199869 Revisions Next

r17772 Monday 10th September, 2012 at 06:25:03 UTC by Aaron Giles
Fix gfx_element behaviors for dynamically created single-
element raw objects used in offbeat drivers like metro.c.
[src/emu]drawgfx.c drawgfx.h

trunk/src/emu/drawgfx.c
r17771r17772
250250     m_char_modulo(0),
251251     m_srcdata(base),
252252     m_dirtyseq(1),
253     m_gfxdata(NULL),
254     m_layout_is_raw(false),
253     m_gfxdata(base),
254     m_layout_is_raw(true),
255255     m_layout_planes(0),
256256     m_layout_charincrement(0),
257257     m_machine(machine)
trunk/src/emu/drawgfx.h
r17771r17772
156156   const UINT8 *get_data(UINT32 code)
157157   {
158158      assert(code < elements());
159      if (m_dirty[code]) decode(code);
159      if (code < m_dirty.count() && m_dirty[code]) decode(code);
160160      return m_gfxdata + code * m_char_modulo + m_starty * m_line_modulo + m_startx;
161161   }
162162   

Previous 199869 Revisions Next


© 1997-2024 The MAME Team