mirror of
https://github.com/holub/mame
synced 2025-06-05 20:33:45 +03:00
Merge pull request #740 from antonioginer/master
Fix issue with ui aspect due to recent changes in -keepaspect
This commit is contained in:
commit
f5d8ff8f43
@ -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
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user