summaryrefslogtreecommitdiffstatshomepage
path: root/src/emu
diff options
context:
space:
mode:
author Vas Crabb <vas@vastheman.com>2020-11-18 00:58:30 +1100
committer Vas Crabb <vas@vastheman.com>2020-11-18 00:58:30 +1100
commit612b6472e740560af41f603115a1163b481dd64c (patch)
tree0ba65831673b396522f65de5b4e2b8b8f024295e /src/emu
parent95927464dd5edff2f790b60d85d35114fb2405d4 (diff)
-unidasm: Allow input piped from stdin by specifying a bare hyphen as the filename. [AJR, Vas Crabb]
-netlist: Give devices the C++17 namespace treatment. -Tidied up compiler warning options for 3rdparty. -emu/render.cpp: Exposed a few information view item properties.
Diffstat (limited to 'src/emu')
-rw-r--r--src/emu/render.cpp2
-rw-r--r--src/emu/render.h5
2 files changed, 5 insertions, 2 deletions
diff --git a/src/emu/render.cpp b/src/emu/render.cpp
index 178a56c5c78..41563bdb873 100644
--- a/src/emu/render.cpp
+++ b/src/emu/render.cpp
@@ -1364,7 +1364,7 @@ render_primitive_list &render_target::get_primitives()
if (curitem.screen())
add_container_primitives(list, root_xform, item_xform, curitem.screen()->container(), curitem.blend_mode());
else
- add_element_primitives(list, item_xform, *curitem.element(), curitem.state(), curitem.blend_mode());
+ add_element_primitives(list, item_xform, *curitem.element(), curitem.element_state(), curitem.blend_mode());
}
}
else
diff --git a/src/emu/render.h b/src/emu/render.h
index f2e95164b63..3dc7376957c 100644
--- a/src/emu/render.h
+++ b/src/emu/render.h
@@ -748,6 +748,8 @@ public:
// getters
layout_element *element() const { return m_element; }
screen_device *screen() { return m_screen; }
+ bool bounds_animated() const { return m_bounds.size() > 1U; }
+ bool color_animated() const { return m_color.size() > 1U; }
render_bounds bounds() const { return m_get_bounds(); }
render_color color() const { return m_get_color(); }
int blend_mode() const { return m_blend_mode; }
@@ -761,7 +763,8 @@ public:
bool clickthrough() const { return m_clickthrough; }
// fetch state based on configured source
- int state() const { return m_get_elem_state(); }
+ int element_state() const { return m_get_elem_state(); }
+ int animation_state() const { return m_get_anim_state(); }
// resolve tags, if any
void resolve_tags();