summaryrefslogtreecommitdiffstatshomepage
path: root/src/mame/layout/mdndclab.lay
diff options
context:
space:
mode:
Diffstat (limited to 'src/mame/layout/mdndclab.lay')
-rw-r--r--src/mame/layout/mdndclab.lay16
1 files changed, 8 insertions, 8 deletions
diff --git a/src/mame/layout/mdndclab.lay b/src/mame/layout/mdndclab.lay
index 1f3b68a26e0..7cc3b69103e 100644
--- a/src/mame/layout/mdndclab.lay
+++ b/src/mame/layout/mdndclab.lay
@@ -20,7 +20,7 @@ license:CC0
local last_state = false
local function get_mouse()
- local x, y, button, target = machine:uiinput():find_mouse()
+ local x, y, button, target = machine.uiinput:find_mouse()
if not button then
last_state = false
return nil
@@ -34,7 +34,7 @@ license:CC0
local vb = target.current_view.bounds
local vw = (vb.x1 - vb.x0)
local vh = (vb.y1 - vb.y0)
- if machine:options().entries.keepaspect:value() then
+ if machine.options.entries.keepaspect:value() then
if (vh / h) < (vw / w) then
local oh = h
h = w * (vh / vw)
@@ -54,12 +54,12 @@ license:CC0
function layout.reset()
for num, col in pairs(walls) do
for num2, wall in pairs(col[2]) do
- machine:outputs():set_indexed_value("colwall", (num * 10) + num2, 0)
+ machine.output:set_indexed_value("colwall", (num * 10) + num2, 0)
end
end
for num, row in pairs(walls) do
for num2, wall in pairs(row[2]) do
- machine:outputs():set_indexed_value("rowwall", (num * 10) + num2, 0)
+ machine.output:set_indexed_value("rowwall", (num * 10) + num2, 0)
end
end
end
@@ -73,8 +73,8 @@ license:CC0
if col[1] < x and (col[1] + 2.5) > x then
for num2, wall in pairs(col[2]) do
if wall &lt; y and (wall + 7.5) &gt; y then
- local state = machine:outputs():get_indexed_value("colwall", (num * 10) + num2)
- machine:outputs():set_indexed_value("colwall", (num * 10) + num2, (~state) &amp; 1)
+ local state = machine.output:get_indexed_value("colwall", (num * 10) + num2)
+ machine.output:set_indexed_value("colwall", (num * 10) + num2, (~state) &amp; 1)
return
end
end
@@ -84,8 +84,8 @@ license:CC0
if row[1] < y and (row[1] + 2.5) > y then
for num2, wall in pairs(row[2]) do
if wall < x and (wall + 7.5) > x then
- local state = machine:outputs():get_indexed_value("rowwall", (num * 10) + num2)
- machine:outputs():set_indexed_value("rowwall", (num * 10) + num2, (~state) & 1)
+ local state = machine.output:get_indexed_value("rowwall", (num * 10) + num2)
+ machine.output:set_indexed_value("rowwall", (num * 10) + num2, (~state) & 1)
return
end
end