Merge pull request #740 from antonioginer/master

Fix issue with ui aspect due to recent changes in -keepaspect
This commit is contained in:
Vas Crabb 2016-03-25 10:32:37 +11:00
commit f5d8ff8f43

View File

@ -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