diff options
author | Vas Crabb <vas@vastheman.com> | 2021-09-21 01:02:11 +1000 |
---|---|---|
committer | Vas Crabb <vas@vastheman.com> | 2021-09-21 01:02:11 +1000 |
commit | da1af2b0d6816a5da1544176b882407bd0dad2ee (patch) | |
tree | 9a7db16882a0fe937a1b2cbdcb6e78711f33dfa3 /src/emu/rendlay.cpp | |
parent | 362d859dc15384f98b97d37cb5e21c7798df3cab (diff) |
-delegates: Fixed structure return with MSVC C++ ABI.
* Automatically use delegate_mfp_compatible to generate an adaptor for
member functions that return non-scalar, non-reference types
(partially addresses #8597).
* Enabled the MSVC delegate implemenation for MSVC on AArch64.
* Switched back to neater delegate types for layout item bounds and
colour.
-docs: Updated the example layout links to point to 0.235 - this means
there's now an example of embedded SVG.
Diffstat (limited to 'src/emu/rendlay.cpp')
-rw-r--r-- | src/emu/rendlay.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/emu/rendlay.cpp b/src/emu/rendlay.cpp index c3f7a70a2e8..b33c58e8fef 100644 --- a/src/emu/rendlay.cpp +++ b/src/emu/rendlay.cpp @@ -4823,10 +4823,10 @@ int layout_view::item::get_anim_input() const // get_interpolated_bounds - animated bounds //------------------------------------------------- -void layout_view::item::get_interpolated_bounds(render_bounds &result) const +render_bounds layout_view::item::get_interpolated_bounds() const { assert(m_bounds.size() > 1U); - result = interpolate_bounds(m_bounds, m_get_anim_state()); + return interpolate_bounds(m_bounds, m_get_anim_state()); } @@ -4834,10 +4834,10 @@ void layout_view::item::get_interpolated_bounds(render_bounds &result) const // get_interpolated_color - animated color //------------------------------------------------- -void layout_view::item::get_interpolated_color(render_color &result) const +render_color layout_view::item::get_interpolated_color() const { assert(m_color.size() > 1U); - result = interpolate_color(m_color, m_get_anim_state()); + return interpolate_color(m_color, m_get_anim_state()); } |