diff options
author | 2016-10-22 13:13:17 +0200 | |
---|---|---|
committer | 2016-10-22 13:13:17 +0200 | |
commit | ddb290d5f615019c33c42b8d94e5a5254cabcf33 (patch) | |
tree | a70f688b0df3acd19da7b1151e5902e3c6af3fa5 /src/mame/drivers/mmagic.cpp | |
parent | 333bff8de64dfaeb98134000412796b4fdef970b (diff) |
NOTICE (TYPE NAME CONSOLIDATION)
Use standard uint64_t, uint32_t, uint16_t or uint8_t instead of UINT64, UINT32, UINT16 or UINT8
also use standard int64_t, int32_t, int16_t or int8_t instead of INT64, INT32, INT16 or INT8
Diffstat (limited to 'src/mame/drivers/mmagic.cpp')
-rw-r--r-- | src/mame/drivers/mmagic.cpp | 24 |
1 files changed, 12 insertions, 12 deletions
diff --git a/src/mame/drivers/mmagic.cpp b/src/mame/drivers/mmagic.cpp index 4c21963b0f4..6dd4cf4e1ba 100644 --- a/src/mame/drivers/mmagic.cpp +++ b/src/mame/drivers/mmagic.cpp @@ -84,7 +84,7 @@ public: DECLARE_WRITE8_MEMBER(color_w); DECLARE_WRITE8_MEMBER(audio_w); - UINT32 screen_update(screen_device &screen, bitmap_rgb32 &bitmap, const rectangle &cliprect); + uint32_t screen_update(screen_device &screen, bitmap_rgb32 &bitmap, const rectangle &cliprect); protected: virtual void machine_start() override; @@ -93,13 +93,13 @@ private: required_device<cpu_device> m_maincpu; required_device<screen_device> m_screen; required_device<palette_device> m_palette; - required_shared_ptr<UINT8> m_vram; - required_region_ptr<UINT8> m_tiles; - required_region_ptr<UINT8> m_colors; + required_shared_ptr<uint8_t> m_vram; + required_region_ptr<uint8_t> m_tiles; + required_region_ptr<uint8_t> m_colors; - UINT8 m_ball_x; - UINT8 m_ball_y; - UINT8 m_color; + uint8_t m_ball_x; + uint8_t m_ball_y; + uint8_t m_color; }; @@ -169,7 +169,7 @@ INPUT_PORTS_END READ8_MEMBER( mmagic_state::vblank_r ) { - UINT8 data = 0; + uint8_t data = 0; // bit 0 = vblank data |= m_screen->vblank() << 0; @@ -198,22 +198,22 @@ WRITE8_MEMBER( mmagic_state::color_w ) m_color = data; } -UINT32 mmagic_state::screen_update(screen_device &screen, bitmap_rgb32 &bitmap, const rectangle &cliprect) +uint32_t mmagic_state::screen_update(screen_device &screen, bitmap_rgb32 &bitmap, const rectangle &cliprect) { // draw playfield for (int y = 0; y < 192 / 12; y++) { for (int x = 0; x < 256 / 8; x++) { - UINT8 code = m_vram[(y * 32) + x] & 0x7f; + uint8_t code = m_vram[(y * 32) + x] & 0x7f; // normal palette 00..7f, alternate palette 80..ff - UINT8 color = m_colors[code | (BIT(m_color, 6) << 7)]; + uint8_t color = m_colors[code | (BIT(m_color, 6) << 7)]; // draw one tile for (int tx = 0; tx < 12; tx++) { - UINT8 gfx = m_tiles[(code << 4) + tx]; + uint8_t gfx = m_tiles[(code << 4) + tx]; bitmap.pix32(y * 12 + tx, x * 8 + 0) = BIT(gfx, 4) ? rgb_t::black : m_palette->pen_color(color); bitmap.pix32(y * 12 + tx, x * 8 + 1) = BIT(gfx, 5) ? rgb_t::black : m_palette->pen_color(color); |