diff options
Diffstat (limited to 'src/mame/drivers/phunsy.cpp')
-rw-r--r-- | src/mame/drivers/phunsy.cpp | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/src/mame/drivers/phunsy.cpp b/src/mame/drivers/phunsy.cpp index 1ff20267bb1..fc5c5776fa5 100644 --- a/src/mame/drivers/phunsy.cpp +++ b/src/mame/drivers/phunsy.cpp @@ -218,19 +218,19 @@ void phunsy_state::phunsy_palette(palette_device &palette) const uint32_t phunsy_state::screen_update(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect) { - uint8_t y,ra,chr,gfx,col; - uint16_t sy=0,ma=0,x; + uint16_t sy=0,ma=0; - for (y = 0; y < 32; y++) + for (uint8_t y = 0; y < 32; y++) { - for (ra = 0; ra < 8; ra++) + for (uint8_t ra = 0; ra < 8; ra++) { - uint16_t *p = &bitmap.pix16(sy++); + uint16_t *p = &bitmap.pix(sy++); - for (x = ma; x < ma+64; x++) + for (uint16_t x = ma; x < ma+64; x++) { - chr = m_p_videoram[x]; + uint8_t const chr = m_p_videoram[x]; + uint8_t gfx,col; if (BIT(chr, 7)) { /* Graphics mode */ |