mirror of
https://github.com/RPCSX/rpcsx.git
synced 2026-04-06 06:55:09 +00:00
fixed_typemap.hpp: return reference
This commit is contained in:
parent
bbf52f3cea
commit
ea5e837bd6
87 changed files with 3028 additions and 2997 deletions
|
|
@ -119,13 +119,13 @@ error_code cellVideoOutGetState(u32 videoOut, u32 deviceIndex, vm::ptr<CellVideo
|
|||
{
|
||||
case CELL_VIDEO_OUT_PRIMARY:
|
||||
{
|
||||
const auto conf = g_fxo->get<rsx::avconf>();
|
||||
auto& conf = g_fxo->get<rsx::avconf>();
|
||||
state->state = CELL_VIDEO_OUT_OUTPUT_STATE_ENABLED;
|
||||
state->colorSpace = CELL_VIDEO_OUT_COLOR_SPACE_RGB;
|
||||
state->displayMode.resolutionId = conf->state? conf->resolution_id : g_video_out_resolution_id.at(g_cfg.video.resolution);
|
||||
state->displayMode.resolutionId = conf.state ? conf.resolution_id : g_video_out_resolution_id.at(g_cfg.video.resolution);
|
||||
state->displayMode.scanMode = CELL_VIDEO_OUT_SCAN_MODE_PROGRESSIVE;
|
||||
state->displayMode.conversion = CELL_VIDEO_OUT_DISPLAY_CONVERSION_NONE;
|
||||
state->displayMode.aspect = conf->state? conf->aspect : g_video_out_aspect_id.at(g_cfg.video.aspect_ratio);
|
||||
state->displayMode.aspect = conf.state ? conf.aspect : g_video_out_aspect_id.at(g_cfg.video.aspect_ratio);
|
||||
state->displayMode.refreshRates = CELL_VIDEO_OUT_REFRESH_RATE_59_94HZ;
|
||||
|
||||
return CELL_OK;
|
||||
|
|
@ -187,20 +187,20 @@ error_code cellVideoOutConfigure(u32 videoOut, vm::ptr<CellVideoOutConfiguration
|
|||
return CELL_VIDEO_OUT_ERROR_UNSUPPORTED_DISPLAY_MODE;
|
||||
}
|
||||
|
||||
auto conf = g_fxo->get<rsx::avconf>();
|
||||
conf->resolution_id = config->resolutionId;
|
||||
conf->_3d = config->resolutionId >= CELL_VIDEO_OUT_RESOLUTION_720_3D_FRAME_PACKING;
|
||||
conf->aspect = config->aspect;
|
||||
conf->format = config->format;
|
||||
conf->scanline_pitch = config->pitch;
|
||||
conf->resolution_x = res.width;
|
||||
conf->resolution_y = res.height;
|
||||
conf->state = 1;
|
||||
auto& conf = g_fxo->get<rsx::avconf>();
|
||||
conf.resolution_id = config->resolutionId;
|
||||
conf._3d = config->resolutionId >= CELL_VIDEO_OUT_RESOLUTION_720_3D_FRAME_PACKING;
|
||||
conf.aspect = config->aspect;
|
||||
conf.format = config->format;
|
||||
conf.scanline_pitch = config->pitch;
|
||||
conf.resolution_x = res.width;
|
||||
conf.resolution_y = res.height;
|
||||
conf.state = 1;
|
||||
|
||||
if (conf->aspect == CELL_VIDEO_OUT_ASPECT_AUTO)
|
||||
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);
|
||||
conf.aspect = g_video_out_aspect_id.at(g_cfg.video.aspect_ratio);
|
||||
}
|
||||
|
||||
cellSysutil.notice("Selected video resolution 0x%x", config->resolutionId);
|
||||
|
|
@ -224,12 +224,12 @@ error_code cellVideoOutGetConfiguration(u32 videoOut, vm::ptr<CellVideoOutConfig
|
|||
{
|
||||
case CELL_VIDEO_OUT_PRIMARY:
|
||||
{
|
||||
if (auto conf = g_fxo->get<rsx::avconf>(); conf->state)
|
||||
if (auto& conf = g_fxo->get<rsx::avconf>(); conf.state)
|
||||
{
|
||||
config->resolutionId = conf->resolution_id;
|
||||
config->format = conf->format;
|
||||
config->aspect = conf->aspect;
|
||||
config->pitch = conf->scanline_pitch;
|
||||
config->resolutionId = conf.resolution_id;
|
||||
config->format = conf.format;
|
||||
config->aspect = conf.aspect;
|
||||
config->pitch = conf.scanline_pitch;
|
||||
}
|
||||
else
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue