summaryrefslogtreecommitdiffstatshomepage
path: root/src/mame/drivers/alg.c
diff options
context:
space:
mode:
author Aaron Giles <aaron@aarongiles.com>2012-01-16 11:06:28 +0000
committer Aaron Giles <aaron@aarongiles.com>2012-01-16 11:06:28 +0000
commit59d84eb1b05c653c1e5c727e648e807bc8340baf (patch)
tree837413310dbe2d9b678860c072206bb244e8e693 /src/mame/drivers/alg.c
parent051af55fa90955e11ba7fb08b586ba3227c4f7d1 (diff)
Fix several rendering issues with artwork, introduced in the
recent changes. Also, did a pass through the code to take advantage of new methods available on rectangles.
Diffstat (limited to 'src/mame/drivers/alg.c')
-rw-r--r--src/mame/drivers/alg.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/mame/drivers/alg.c b/src/mame/drivers/alg.c
index caabd183ad5..d54133bf06a 100644
--- a/src/mame/drivers/alg.c
+++ b/src/mame/drivers/alg.c
@@ -64,8 +64,8 @@ static int get_lightgun_pos(screen_device &screen, int player, int *x, int *y)
if (xpos == -1 || ypos == -1)
return FALSE;
- *x = visarea.min_x + xpos * (visarea.max_x - visarea.min_x + 1) / 255;
- *y = visarea.min_y + ypos * (visarea.max_y - visarea.min_y + 1) / 255;
+ *x = visarea.min_x + xpos * visarea.width() / 255;
+ *y = visarea.min_y + ypos * visarea.height() / 255;
return TRUE;
}