From fdf97109be1b60f790f4447c8ac3c86c31b5e140 Mon Sep 17 00:00:00 2001 From: Antonio Giner Date: Fri, 25 Mar 2016 00:25:12 +0100 Subject: Fix issue with ui aspect due to recent changes in -keepaspect This also makes sure ui aspect ratio is computed correctly even on rotated targets. --- src/emu/render.cpp | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) (limited to 'src') diff --git a/src/emu/render.cpp b/src/emu/render.cpp index 5eac2f39d8e..62ad1e688cb 100644 --- a/src/emu/render.cpp +++ b/src/emu/render.cpp @@ -2583,7 +2583,15 @@ float render_manager::ui_aspect(render_container *rc) // if we have a valid pixel aspect, apply that and return if (m_ui_target->pixel_aspect() != 0.0f) - aspect /= m_ui_target->pixel_aspect(); + { + float pixel_aspect = m_ui_target->pixel_aspect(); + + if (orient & ORIENTATION_SWAP_XY) + pixel_aspect = 1.0f / pixel_aspect; + + return aspect /= pixel_aspect; + } + } else { // single screen container -- cgit v1.2.3