diff options
Diffstat (limited to 'src/mame/drivers/ssingles.cpp')
-rw-r--r-- | src/mame/drivers/ssingles.cpp | 26 |
1 files changed, 11 insertions, 15 deletions
diff --git a/src/mame/drivers/ssingles.cpp b/src/mame/drivers/ssingles.cpp index 8b1fd2918f9..8ad3cc7f007 100644 --- a/src/mame/drivers/ssingles.cpp +++ b/src/mame/drivers/ssingles.cpp @@ -218,20 +218,18 @@ static constexpr rgb_t ssingles_colors[NUM_PENS] = MC6845_UPDATE_ROW( ssingles_state::ssingles_update_row ) { - uint32_t tile_address; - uint16_t cell, palette; - uint8_t b0, b1; - const uint8_t *gfx = memregion("gfx1")->base(); + uint8_t const *const gfx = memregion("gfx1")->base(); for (int cx = 0; cx < x_count; ++cx) { int address = ((ma >> 1) + (cx >> 1)) & 0xff; - cell = m_videoram[address] + (m_colorram[address] << 8); + uint16_t cell = m_videoram[address] + (m_colorram[address] << 8); - tile_address = ((cell & 0x3ff) << 4) + ra; - palette = (cell >> 10) & 0x1c; + uint32_t tile_address = ((cell & 0x3ff) << 4) + ra; + uint16_t palette = (cell >> 10) & 0x1c; + uint8_t b0, b1; if (cx & 1) { b0 = gfx[tile_address + 0x0000]; /* 9.bin */ @@ -245,7 +243,7 @@ MC6845_UPDATE_ROW( ssingles_state::ssingles_update_row ) for (int x = 7; x >= 0; --x) { - bitmap.pix32(y, (cx << 3) | x) = m_pens[palette + ((b1 & 1) | ((b0 & 1) << 1))]; + bitmap.pix(y, (cx << 3) | x) = m_pens[palette + ((b1 & 1) | ((b0 & 1) << 1))]; b0 >>= 1; b1 >>= 1; } @@ -254,20 +252,18 @@ MC6845_UPDATE_ROW( ssingles_state::ssingles_update_row ) MC6845_UPDATE_ROW( ssingles_state::atamanot_update_row ) { - uint32_t tile_address; - uint16_t cell, palette; - uint8_t b0, b1; const uint8_t *gfx = memregion("gfx1")->base(); for (int cx = 0; cx < x_count; ++cx) { int address = ((ma >> 1) + (cx >> 1)) & 0xff; - cell = m_videoram[address] + (m_colorram[address] << 8); + uint16_t cell = m_videoram[address] + (m_colorram[address] << 8); - tile_address = ((cell & 0x1ff) << 4) + ra; - palette = (cell >> 10) & 0x1c; + uint32_t tile_address = ((cell & 0x1ff) << 4) + ra; + uint16_t palette = (cell >> 10) & 0x1c; + uint8_t b0, b1; if (cx & 1) { b0 = gfx[tile_address + 0x0000]; /* 9.bin */ @@ -281,7 +277,7 @@ MC6845_UPDATE_ROW( ssingles_state::atamanot_update_row ) for (int x = 7; x >= 0; --x) { - bitmap.pix32(y, (cx << 3) | x) = m_pens[palette + ((b1 & 1) | ((b0 & 1) << 1))]; + bitmap.pix(y, (cx << 3) | x) = m_pens[palette + ((b1 & 1) | ((b0 & 1) << 1))]; b0 >>= 1; b1 >>= 1; } |