mirror of
https://github.com/RPCS3/rpcs3.git
synced 2025-02-19 12:40:29 +00:00
cellVideoOutConfigure minor fix.
This commit is contained in:
parent
db784556aa
commit
c6e47a573d
@ -147,8 +147,26 @@ error_code cellVideoOutConfigure(u32 videoOut, vm::ptr<CellVideoOutConfiguration
|
|||||||
return CELL_VIDEO_OUT_ERROR_ILLEGAL_CONFIGURATION;
|
return CELL_VIDEO_OUT_ERROR_ILLEGAL_CONFIGURATION;
|
||||||
}
|
}
|
||||||
|
|
||||||
verify(HERE), config->resolutionId > 0;
|
bool found = false;
|
||||||
auto& res_info = g_video_out_resolution_map.at(static_cast<video_resolution>(config->resolutionId - 1));
|
video_resolution res;
|
||||||
|
|
||||||
|
for (const auto& ares : g_video_out_resolution_id)
|
||||||
|
{
|
||||||
|
if (ares.second == config->resolutionId)
|
||||||
|
{
|
||||||
|
found = true;
|
||||||
|
res = ares.first;
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
if (!found)
|
||||||
|
{
|
||||||
|
cellSysutil.error("Unusual resolution requested: 0x%x", config->resolutionId);
|
||||||
|
return CELL_VIDEO_OUT_ERROR_UNSUPPORTED_DISPLAY_MODE;
|
||||||
|
}
|
||||||
|
|
||||||
|
auto& res_info = g_video_out_resolution_map.at(res);
|
||||||
|
|
||||||
auto conf = fxm::get_always<rsx::avconf>();
|
auto conf = fxm::get_always<rsx::avconf>();
|
||||||
conf->aspect = config->aspect;
|
conf->aspect = config->aspect;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user