diff options
Diffstat (limited to 'src/mame/video/midzeus.c')
-rw-r--r-- | src/mame/video/midzeus.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/mame/video/midzeus.c b/src/mame/video/midzeus.c index 559b5cfcb1b..5e4a0d439b4 100644 --- a/src/mame/video/midzeus.c +++ b/src/mame/video/midzeus.c @@ -336,7 +336,7 @@ UINT32 midzeus_state::screen_update_midzeus(screen_device &screen, bitmap_ind16 poly_wait(poly, "VIDEO_UPDATE"); /* normal update case */ - if (!screen.machine().input().code_pressed(KEYCODE_W)) + if (!machine().input().code_pressed(KEYCODE_W)) { const void *base = waveram1_ptr_from_expanded_addr(m_zeusbase[0xcc]); int xoffs = screen.visible_area().min_x; @@ -353,10 +353,10 @@ UINT32 midzeus_state::screen_update_midzeus(screen_device &screen, bitmap_ind16 { const void *base; - if (screen.machine().input().code_pressed(KEYCODE_DOWN)) yoffs += screen.machine().input().code_pressed(KEYCODE_LSHIFT) ? 0x40 : 1; - if (screen.machine().input().code_pressed(KEYCODE_UP)) yoffs -= screen.machine().input().code_pressed(KEYCODE_LSHIFT) ? 0x40 : 1; - if (screen.machine().input().code_pressed(KEYCODE_LEFT) && texel_width > 4) { texel_width >>= 1; while (screen.machine().input().code_pressed(KEYCODE_LEFT)) ; } - if (screen.machine().input().code_pressed(KEYCODE_RIGHT) && texel_width < 512) { texel_width <<= 1; while (screen.machine().input().code_pressed(KEYCODE_RIGHT)) ; } + if (machine().input().code_pressed(KEYCODE_DOWN)) yoffs += machine().input().code_pressed(KEYCODE_LSHIFT) ? 0x40 : 1; + if (machine().input().code_pressed(KEYCODE_UP)) yoffs -= machine().input().code_pressed(KEYCODE_LSHIFT) ? 0x40 : 1; + if (machine().input().code_pressed(KEYCODE_LEFT) && texel_width > 4) { texel_width >>= 1; while (machine().input().code_pressed(KEYCODE_LEFT)) ; } + if (machine().input().code_pressed(KEYCODE_RIGHT) && texel_width < 512) { texel_width <<= 1; while (machine().input().code_pressed(KEYCODE_RIGHT)) ; } if (yoffs < 0) yoffs = 0; base = waveram0_ptr_from_block_addr(yoffs << 12); |