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/coinmstr.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/coinmstr.cpp')
-rw-r--r-- | src/mame/drivers/coinmstr.cpp | 30 |
1 files changed, 15 insertions, 15 deletions
diff --git a/src/mame/drivers/coinmstr.cpp b/src/mame/drivers/coinmstr.cpp index e699adeb329..cd36a3a26a7 100644 --- a/src/mame/drivers/coinmstr.cpp +++ b/src/mame/drivers/coinmstr.cpp @@ -152,12 +152,12 @@ public: m_gfxdecode(*this, "gfxdecode"), m_palette(*this, "palette") { } - required_shared_ptr<UINT8> m_videoram; - required_shared_ptr<UINT8> m_attr_ram1; - required_shared_ptr<UINT8> m_attr_ram2; - required_shared_ptr<UINT8> m_attr_ram3; + required_shared_ptr<uint8_t> m_videoram; + required_shared_ptr<uint8_t> m_attr_ram1; + required_shared_ptr<uint8_t> m_attr_ram2; + required_shared_ptr<uint8_t> m_attr_ram3; tilemap_t *m_bg_tilemap; - UINT8 m_question_adr[4]; + uint8_t m_question_adr[4]; DECLARE_WRITE8_MEMBER(quizmstr_bg_w); DECLARE_WRITE8_MEMBER(quizmstr_attr1_w); DECLARE_WRITE8_MEMBER(quizmstr_attr2_w); @@ -168,7 +168,7 @@ public: DECLARE_DRIVER_INIT(coinmstr); TILE_GET_INFO_MEMBER(get_bg_tile_info); virtual void video_start() override; - UINT32 screen_update_coinmstr(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect); + uint32_t screen_update_coinmstr(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect); required_device<cpu_device> m_maincpu; required_device<gfxdecode_device> m_gfxdecode; required_device<palette_device> m_palette; @@ -177,7 +177,7 @@ public: WRITE8_MEMBER(coinmstr_state::quizmstr_bg_w) { - UINT8 *videoram = m_videoram; + uint8_t *videoram = m_videoram; videoram[offset] = data; if(offset >= 0x0240) @@ -185,7 +185,7 @@ WRITE8_MEMBER(coinmstr_state::quizmstr_bg_w) } -static void coinmstr_set_pal(palette_device &palette, UINT32 paldat, int col) +static void coinmstr_set_pal(palette_device &palette, uint32_t paldat, int col) { col = col *4; @@ -225,7 +225,7 @@ WRITE8_MEMBER(coinmstr_state::quizmstr_attr1_w) if(offset >= 0x0240) { // the later games also use attr3 for something.. - UINT32 paldata = (m_attr_ram1[offset] & 0x7f) | ((m_attr_ram2[offset] & 0x7f) << 7); + uint32_t paldata = (m_attr_ram1[offset] & 0x7f) | ((m_attr_ram2[offset] & 0x7f) << 7); m_bg_tilemap->mark_tile_dirty(offset - 0x0240); coinmstr_set_pal(*m_palette, paldata, offset - 0x240); @@ -240,7 +240,7 @@ WRITE8_MEMBER(coinmstr_state::quizmstr_attr2_w) if(offset >= 0x0240) { // the later games also use attr3 for something.. - UINT32 paldata = (m_attr_ram1[offset] & 0x7f) | ((m_attr_ram2[offset] & 0x7f) << 7); + uint32_t paldata = (m_attr_ram1[offset] & 0x7f) | ((m_attr_ram2[offset] & 0x7f) << 7); m_bg_tilemap->mark_tile_dirty(offset - 0x0240); coinmstr_set_pal(*m_palette, paldata, offset - 0x240); @@ -261,7 +261,7 @@ WRITE8_MEMBER(coinmstr_state::quizmstr_attr3_w) READ8_MEMBER(coinmstr_state::question_r) { int address; - UINT8 *questions = memregion("user1")->base(); + uint8_t *questions = memregion("user1")->base(); switch(m_question_adr[2]) { @@ -1207,7 +1207,7 @@ GFXDECODE_END TILE_GET_INFO_MEMBER(coinmstr_state::get_bg_tile_info) { - UINT8 *videoram = m_videoram; + uint8_t *videoram = m_videoram; int tile = videoram[tile_index + 0x0240]; int color = tile_index; @@ -1224,7 +1224,7 @@ void coinmstr_state::video_start() m_bg_tilemap = &machine().tilemap().create(*m_gfxdecode, tilemap_get_info_delegate(FUNC(coinmstr_state::get_bg_tile_info),this), TILEMAP_SCAN_ROWS, 8, 8, 46, 32); } -UINT32 coinmstr_state::screen_update_coinmstr(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect) +uint32_t coinmstr_state::screen_update_coinmstr(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect) { m_bg_tilemap->draw(screen, bitmap, cliprect, 0, 0); return 0; @@ -1528,9 +1528,9 @@ ROM_END DRIVER_INIT_MEMBER(coinmstr_state,coinmstr) { - UINT8 *rom = memregion("user1")->base(); + uint8_t *rom = memregion("user1")->base(); int length = memregion("user1")->bytes(); - std::vector<UINT8> buf(length); + std::vector<uint8_t> buf(length); int i; memcpy(&buf[0],rom,length); |