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:
@@ -191,6 +191,12 @@ error_code cellVideoOutConfigure(u32 videoOut, vm::ptr<CellVideoOutConfiguration
|
|||||||
conf->resolution_y = u32(res_info.second);
|
conf->resolution_y = u32(res_info.second);
|
||||||
conf->state = 1;
|
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;
|
return CELL_OK;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user