From 582c98359e45ca9e850657c154c4115f0f863639 Mon Sep 17 00:00:00 2001 From: kd-11 Date: Sun, 1 Mar 2020 19:24:17 +0300 Subject: [PATCH] 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. --- rpcs3/Emu/Cell/Modules/cellVideoOut.cpp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/rpcs3/Emu/Cell/Modules/cellVideoOut.cpp b/rpcs3/Emu/Cell/Modules/cellVideoOut.cpp index 17730a12bc..664ae79a70 100644 --- a/rpcs3/Emu/Cell/Modules/cellVideoOut.cpp +++ b/rpcs3/Emu/Cell/Modules/cellVideoOut.cpp @@ -191,6 +191,12 @@ error_code cellVideoOutConfigure(u32 videoOut, vm::ptrresolution_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; }