mirror of
https://github.com/RPCS3/rpcs3.git
synced 2025-04-21 03:55:32 +00:00
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:
parent
7dfd50d5cc
commit
582c98359e
1 changed files with 6 additions and 0 deletions
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue