crtc: Move MetaCrtcConfig field to instance private

Last piece before MetCrtc can be made a derivable type.

https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/1287
This commit is contained in:
Jonas Ådahl
2020-02-26 10:37:53 +01:00
committed by Georges Basile Stavracas Neto
parent c3fc6025b1
commit 092c5304a9
13 changed files with 82 additions and 47 deletions

View File

@ -65,11 +65,11 @@ meta_output_kms_set_underscan (MetaOutput *output,
if (meta_output_is_underscanning (output))
{
MetaCrtc *crtc;
MetaCrtcConfig *crtc_config;
const MetaCrtcConfig *crtc_config;
uint64_t hborder, vborder;
crtc = meta_output_get_assigned_crtc (output);
crtc_config = crtc->config;
crtc_config = meta_crtc_get_config (crtc);
hborder = MIN (128, (uint64_t) round (crtc_config->mode->width * 0.05));
vborder = MIN (128, (uint64_t) round (crtc_config->mode->height * 0.05));