summaryrefslogtreecommitdiffstatshomepage
path: root/src/emu/render.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/emu/render.c')
-rw-r--r--src/emu/render.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/emu/render.c b/src/emu/render.c
index 46ae77e8909..af95b896cf5 100644
--- a/src/emu/render.c
+++ b/src/emu/render.c
@@ -2494,13 +2494,13 @@ float render_manager::ui_aspect(render_container *rc)
orient = orientation_add(m_ui_target->orientation(), m_ui_container->orientation());
// based on the orientation of the target, compute height/width or width/height
if (!(orient & ORIENTATION_SWAP_XY))
- aspect = (float)m_ui_target->height() / (float)m_ui_target->width();
+ aspect = (float)m_ui_target->height() / (float)m_ui_target->width();
else
- aspect = (float)m_ui_target->width() / (float)m_ui_target->height();
+ aspect = (float)m_ui_target->width() / (float)m_ui_target->height();
// if we have a valid pixel aspect, apply that and return
if (m_ui_target->pixel_aspect() != 0.0f)
- return (aspect / m_ui_target->pixel_aspect());
+ return (aspect / m_ui_target->pixel_aspect());
} else {
// single screen container