diff options
author | 2012-09-17 06:49:13 +0000 | |
---|---|---|
committer | 2012-09-17 06:49:13 +0000 | |
commit | e25c13f2532730ebf50d0cffa0147393fd8e0228 (patch) | |
tree | a6c25d1de7041f26afed559dbc6670fa550e6b41 /src/emu/drawgfx.h | |
parent | f97e8f00818bd8d898facc206ed33ab72cf10a75 (diff) |
Clean-ups and version bumpmame0147
note: hoarded dump removed too from coco_cart.xml, this will not be tolerated
Diffstat (limited to 'src/emu/drawgfx.h')
-rw-r--r-- | src/emu/drawgfx.h | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/emu/drawgfx.h b/src/emu/drawgfx.h index 4c6df80f1cf..c96c8570670 100644 --- a/src/emu/drawgfx.h +++ b/src/emu/drawgfx.h @@ -133,7 +133,7 @@ public: UINT32 colors() const { return m_total_colors; } UINT32 rowbytes() const { return m_line_modulo; } bool has_pen_usage() const { return (m_pen_usage.count() > 0); } - + // a bit gross that people muck with this stuff... const UINT8 *srcdata() const { return m_srcdata; } UINT32 dirtyseq() const { return m_dirtyseq; } @@ -156,17 +156,17 @@ public: const UINT8 *get_data(UINT32 code) { assert(code < elements()); - if (code < m_dirty.count() && m_dirty[code]) decode(code); + if (code < m_dirty.count() && m_dirty[code]) decode(code); return m_gfxdata + code * m_char_modulo + m_starty * m_line_modulo + m_startx; } - + UINT32 pen_usage(UINT32 code) { assert(code < m_pen_usage.count()); - if (m_dirty[code]) decode(code); + if (m_dirty[code]) decode(code); return m_pen_usage[code]; } - + private: // internal state UINT16 m_width; // current pixel width of each element (changeble with source clipping) |