videoOut: Resolve 'auto' aspect ratio

- 'Auto' is not an actual aspect ratio, just a dont-care flag to set the
  display to the best fit aspect ratio.
  Decay this option into a proper ratio for cellVideoOutGetState to
return legal values.
This commit is contained in:
kd-11 2020-03-01 19:24:17 +03:00 committed by Ivan
parent 7dfd50d5cc
commit 582c98359e

View file

@ -191,6 +191,12 @@ error_code cellVideoOutConfigure(u32 videoOut, vm::ptr<CellVideoOutConfiguration
conf->resolution_y = u32(res_info.second);
conf->state = 1;
if (conf->aspect == CELL_VIDEO_OUT_ASPECT_AUTO)
{
// Resolve 'auto' option to actual aspect ratio
conf->aspect = g_video_out_aspect_id.at(g_cfg.video.aspect_ratio);
}
return CELL_OK;
}