summaryrefslogtreecommitdiffstatshomepage
path: root/src/mame/drivers/mbc200.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/mame/drivers/mbc200.cpp')
-rw-r--r--src/mame/drivers/mbc200.cpp12
1 files changed, 5 insertions, 7 deletions
diff --git a/src/mame/drivers/mbc200.cpp b/src/mame/drivers/mbc200.cpp
index 369cb6ee117..64e89698e6b 100644
--- a/src/mame/drivers/mbc200.cpp
+++ b/src/mame/drivers/mbc200.cpp
@@ -268,15 +268,13 @@ static void mbc200_floppies(device_slot_interface &device)
MC6845_UPDATE_ROW( mbc200_state::update_row )
{
- const rgb_t *palette = m_palette->palette()->entry_list_raw();
- u8 gfx;
- u16 mem,x;
- u32 *p = &bitmap.pix32(y);
+ rgb_t const *const palette = m_palette->palette()->entry_list_raw();
+ u32 *p = &bitmap.pix(y);
- for (x = 0; x < x_count; x++)
+ for (u16 x = 0; x < x_count; x++)
{
- mem = (ma+x)*4+ra;
- gfx = m_vram[mem & 0x7fff];
+ u16 mem = (ma+x)*4+ra;
+ u8 gfx = m_vram[mem & 0x7fff];
*p++ = palette[BIT(gfx, 7)];
*p++ = palette[BIT(gfx, 6)];
*p++ = palette[BIT(gfx, 5)];