diff options
Diffstat (limited to 'randr/mirandr.c')
-rw-r--r-- | randr/mirandr.c | 11 |
1 files changed, 2 insertions, 9 deletions
diff --git a/randr/mirandr.c b/randr/mirandr.c index 47136fb96..3c4991e5a 100644 --- a/randr/mirandr.c +++ b/randr/mirandr.c @@ -133,20 +133,13 @@ miRandRInit (ScreenPtr pScreen) if (!mode) return FALSE; - crtc = RRCrtcCreate (NULL); + crtc = RRCrtcCreate (pScreen, NULL); if (!crtc) return FALSE; - if (!RRCrtcAttachScreen (crtc, pScreen)) - { - RRCrtcDestroy (crtc); - return FALSE; - } - output = RROutputCreate ("screen", 6, NULL); + output = RROutputCreate (pScreen, "screen", 6, NULL); if (!output) return FALSE; - if (!RROutputAttachScreen (output, pScreen)) - return FALSE; if (!RROutputSetClones (output, NULL, 0)) return FALSE; if (!RROutputSetModes (output, &mode, 1, 0)) |