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:
parent
22a7b026e7
commit
aea1ec2594
@ -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;
|
||||
|
||||
|
@ -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;
|
||||
|
@ -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)
|
||||
{
|
||||
|
@ -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)
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user