summaryrefslogtreecommitdiffstatshomepage
path: root/src/mame/video/n8080.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/mame/video/n8080.c')
-rw-r--r--src/mame/video/n8080.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/mame/video/n8080.c b/src/mame/video/n8080.c
index 1b79b860689..906eaf09f8e 100644
--- a/src/mame/video/n8080.c
+++ b/src/mame/video/n8080.c
@@ -254,8 +254,8 @@ SCREEN_UPDATE_IND16( sheriff )
SCREEN_UPDATE_IND16( helifire )
{
n8080_state *state = screen.machine().driver_data<n8080_state>();
- int SUN_BRIGHTNESS = input_port_read(screen.machine(), "POT0");
- int SEA_BRIGHTNESS = input_port_read(screen.machine(), "POT1");
+ int SUN_BRIGHTNESS = screen.machine().root_device().ioport("POT0")->read();
+ int SEA_BRIGHTNESS = screen.machine().root_device().ioport("POT1")->read();
static const int wave[8] = { 0, 1, 2, 2, 2, 1, 0, 0 };