diff options
author | 2015-03-25 08:16:51 +0100 | |
---|---|---|
committer | 2015-03-25 08:16:51 +0100 | |
commit | 0147bb4cc82e642cf75151f039f240eb20989fbc (patch) | |
tree | 1da79e38b3eb810f9f5ab9f6f4853defad55792d /src/emu/render.c | |
parent | fda60d87eb9228d923fd33130671b2c5de881683 (diff) |
Cleanups and version bumpmame0160
Diffstat (limited to 'src/emu/render.c')
-rw-r--r-- | src/emu/render.c | 6 |
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 |