summaryrefslogtreecommitdiffstatshomepage
path: root/src/mame/drivers/llc1.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/mame/drivers/llc1.cpp')
-rw-r--r--src/mame/drivers/llc1.cpp17
1 files changed, 8 insertions, 9 deletions
diff --git a/src/mame/drivers/llc1.cpp b/src/mame/drivers/llc1.cpp
index a0117d521d8..29e900f8b1e 100644
--- a/src/mame/drivers/llc1.cpp
+++ b/src/mame/drivers/llc1.cpp
@@ -237,22 +237,21 @@ void llc1_state::machine_start()
u32 llc1_state::screen_update(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect)
{
- u8 y,ra,chr,gfx,inv;
- u16 sy=0,ma=0,x;
+ u16 sy=0,ma=0;
- for (y = 0; y < 16; y++)
+ for (u8 y = 0; y < 16; y++)
{
- for (ra = 0; ra < 8; ra++)
+ for (u8 ra = 0; ra < 8; ra++)
{
- u16 *p = &bitmap.pix16(sy++);
+ u16 *p = &bitmap.pix(sy++);
- for (x = ma; x < ma + 64; x++)
+ for (u16 x = ma; x < ma + 64; x++)
{
- inv = (m_vram[x] & 0x80) ? 0xff : 0;
- chr = m_vram[x] & 0x7f;
+ u8 const inv = (m_vram[x] & 0x80) ? 0xff : 0;
+ u8 const chr = m_vram[x] & 0x7f;
/* get pattern of pixels for that character scanline */
- gfx = m_p_chargen[ chr | (ra << 7) ] ^ inv;
+ u8 const gfx = m_p_chargen[ chr | (ra << 7) ] ^ inv;
/* Display a scanline of a character (8 pixels) */
*p++ = BIT(gfx, 7);