mirror of
https://github.com/brl/mutter.git
synced 2025-06-14 01:09:30 +00:00
crtc: Move MetaGpu field to instance-private
Users either set during construction, or get via the helper. https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/1287
This commit is contained in:

committed by
Georges Basile Stavracas Neto

parent
2724f36527
commit
2ebd43cba9
@ -248,7 +248,9 @@ meta_create_xrandr_crtc (MetaGpuXrandr *gpu_xrandr,
|
||||
unsigned int i;
|
||||
GList *modes;
|
||||
|
||||
crtc = g_object_new (META_TYPE_CRTC, NULL);
|
||||
crtc = g_object_new (META_TYPE_CRTC,
|
||||
"gpu", gpu,
|
||||
NULL);
|
||||
|
||||
crtc_xrandr = g_new0 (MetaCrtcXrandr, 1);
|
||||
crtc_xrandr->transform =
|
||||
@ -256,7 +258,6 @@ meta_create_xrandr_crtc (MetaGpuXrandr *gpu_xrandr,
|
||||
|
||||
crtc->driver_private = crtc_xrandr;
|
||||
crtc->driver_notify = (GDestroyNotify) meta_crtc_destroy_notify;
|
||||
crtc->gpu = META_GPU (gpu_xrandr);
|
||||
crtc->crtc_id = crtc_id;
|
||||
|
||||
panning = XRRGetPanning (xdisplay, resources, crtc_id);
|
||||
@ -283,7 +284,7 @@ meta_create_xrandr_crtc (MetaGpuXrandr *gpu_xrandr,
|
||||
crtc->all_transforms =
|
||||
meta_monitor_transform_from_xrandr_all (xrandr_crtc->rotations);
|
||||
|
||||
modes = meta_gpu_get_modes (crtc->gpu);
|
||||
modes = meta_gpu_get_modes (gpu);
|
||||
for (i = 0; i < (unsigned int) resources->nmode; i++)
|
||||
{
|
||||
if (resources->modes[i].id == xrandr_crtc->mode)
|
||||
|
Reference in New Issue
Block a user