1
0
mirror of https://github.com/RPCS3/rpcs3.git synced 2024-11-22 02:32:36 +01:00

avconf: Add const to fxo references

This commit is contained in:
Megamouse 2021-11-10 22:18:46 +01:00
parent 22a7b026e7
commit aea1ec2594
4 changed files with 5 additions and 5 deletions

View File

@ -206,7 +206,7 @@ error_code cellVideoOutGetGamma(u32 videoOut, vm::ptr<f32> gamma)
return CELL_VIDEO_OUT_ERROR_UNSUPPORTED_VIDEO_OUT;
}
auto& conf = g_fxo->get<rsx::avconf>();
const auto& conf = g_fxo->get<rsx::avconf>();
*gamma = conf.gamma;

View File

@ -119,7 +119,7 @@ error_code cellVideoOutGetState(u32 videoOut, u32 deviceIndex, vm::ptr<CellVideo
{
case CELL_VIDEO_OUT_PRIMARY:
{
auto& conf = g_fxo->get<rsx::avconf>();
const 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);
@ -224,7 +224,7 @@ error_code cellVideoOutGetConfiguration(u32 videoOut, vm::ptr<CellVideoOutConfig
{
case CELL_VIDEO_OUT_PRIMARY:
{
if (auto& conf = g_fxo->get<rsx::avconf>(); conf.state)
if (const auto& conf = g_fxo->get<rsx::avconf>(); conf.state)
{
config->resolutionId = conf.resolution_id;
config->format = conf.format;

View File

@ -129,7 +129,7 @@ void GLGSRender::flip(const rsx::display_flip_info_t& info)
u32 buffer_pitch = display_buffers[info.buffer].pitch;
u32 av_format;
auto& avconfig = g_fxo->get<rsx::avconf>();
const auto& avconfig = g_fxo->get<rsx::avconf>();
if (avconfig.state)
{

View File

@ -446,7 +446,7 @@ void VKGSRender::flip(const rsx::display_flip_info_t& info)
u32 buffer_pitch = display_buffers[info.buffer].pitch;
u32 av_format;
auto& avconfig = g_fxo->get<rsx::avconf>();
const auto& avconfig = g_fxo->get<rsx::avconf>();
if (avconfig.state)
{