summaryrefslogtreecommitdiffstatshomepage
path: root/src/mame/drivers/lgp.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/mame/drivers/lgp.cpp')
-rw-r--r--src/mame/drivers/lgp.cpp13
1 files changed, 5 insertions, 8 deletions
diff --git a/src/mame/drivers/lgp.cpp b/src/mame/drivers/lgp.cpp
index f2f4fc4d76d..76b21aa9428 100644
--- a/src/mame/drivers/lgp.cpp
+++ b/src/mame/drivers/lgp.cpp
@@ -124,8 +124,6 @@ private:
/* VIDEO GOODS */
uint32_t lgp_state::screen_update_lgp(screen_device &screen, bitmap_rgb32 &bitmap, const rectangle &cliprect)
{
- int charx, chary;
-
/* make color 0 transparent */
m_palette->set_pen_color(0, rgb_t(0,0,0,0));
@@ -133,18 +131,18 @@ uint32_t lgp_state::screen_update_lgp(screen_device &screen, bitmap_rgb32 &bitma
bitmap.fill(0, cliprect);
/* Draw tiles */
- for (charx = 0; charx < 32; charx++)
+ for (int charx = 0; charx < 32; charx++)
{
- for (chary = 0; chary < 32; chary++)
+ for (int chary = 0; chary < 32; chary++)
{
- int current_screen_character = (chary*32) + charx;
+ int current_screen_character = (chary * 32) + charx;
/* Somewhere there's a flag that offsets the tilemap by 0x100*x */
/* Palette is likely set somewhere as well (tile_control_ram?) */
- m_gfxdecode->gfx(0)->transpen(bitmap,cliprect,
+ m_gfxdecode->gfx(0)->transpen(bitmap, cliprect,
m_tile_ram[current_screen_character],
0,
- 0, 0, charx*8, chary*8, 0);
+ 0, 0, charx * 8, chary * 8, 0);
}
}
@@ -426,7 +424,6 @@ void lgp_state::lgp(machine_config &config)
PIONEER_LDV1000(config, m_laserdisc, 0);
m_laserdisc->command_strobe_callback().set(FUNC(lgp_state::ld_command_strobe_cb));
m_laserdisc->set_overlay(256, 256, FUNC(lgp_state::screen_update_lgp));
- m_laserdisc->set_overlay_palette(m_palette);
m_laserdisc->add_route(0, "lspeaker", 1.0);
m_laserdisc->add_route(1, "rspeaker", 1.0);