summaryrefslogtreecommitdiffstatshomepage
path: root/src/mame/drivers/lastfght.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/mame/drivers/lastfght.c')
-rw-r--r--src/mame/drivers/lastfght.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/mame/drivers/lastfght.c b/src/mame/drivers/lastfght.c
index 37187ca34e2..5c8a6b23a46 100644
--- a/src/mame/drivers/lastfght.c
+++ b/src/mame/drivers/lastfght.c
@@ -151,24 +151,24 @@ UINT32 lastfght_state::screen_update_lastfght(screen_device &screen, bitmap_ind1
#if 1
// gfx roms viewer (toggle with enter, use pgup/down to browse)
int x, y, count = 0;
- UINT8 *gfxdata = screen.machine().root_device().memregion("gfx1")->base();
+ UINT8 *gfxdata = machine().root_device().memregion("gfx1")->base();
UINT8 data;
- if (screen.machine().input().code_pressed_once(KEYCODE_ENTER)) m_view_roms ^= 1;
+ if (machine().input().code_pressed_once(KEYCODE_ENTER)) m_view_roms ^= 1;
if (m_view_roms)
{
- if (screen.machine().input().code_pressed_once(KEYCODE_PGDN)) m_base += 512 * 256;
- if (screen.machine().input().code_pressed_once(KEYCODE_PGUP)) m_base -= 512 * 256;
+ if (machine().input().code_pressed_once(KEYCODE_PGDN)) m_base += 512 * 256;
+ if (machine().input().code_pressed_once(KEYCODE_PGUP)) m_base -= 512 * 256;
m_base %= memregion("gfx1")->bytes();
count = m_base;
- bitmap.fill(get_black_pen(screen.machine()), cliprect );
+ bitmap.fill(get_black_pen(machine()), cliprect );
for (y = 0 ; y < 256; y++)
{
for (x = 0; x < 512; x++)
{
- data = (((count & 0xf) == 0) && ((count & 0x1e00) == 0)) ? get_white_pen(screen.machine()) : gfxdata[count]; // white grid or data
+ data = (((count & 0xf) == 0) && ((count & 0x1e00) == 0)) ? get_white_pen(machine()) : gfxdata[count]; // white grid or data
bitmap.pix16(y, x) = data;
count++;
}