summaryrefslogtreecommitdiffstatshomepage
path: root/src/mame/drivers/alg.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/mame/drivers/alg.cpp')
-rw-r--r--src/mame/drivers/alg.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/mame/drivers/alg.cpp b/src/mame/drivers/alg.cpp
index b72d8a61b3a..96dc185ba6b 100644
--- a/src/mame/drivers/alg.cpp
+++ b/src/mame/drivers/alg.cpp
@@ -102,8 +102,8 @@ int alg_state::get_lightgun_pos(int player, int *x, int *y)
if (xpos == -1 || ypos == -1)
return false;
- *x = visarea.min_x + xpos * visarea.width() / 255;
- *y = visarea.min_y + ypos * visarea.height() / 255;
+ *x = visarea.left() + xpos * visarea.width() / 255;
+ *y = visarea.top() + ypos * visarea.height() / 255;
return true;
}