summaryrefslogtreecommitdiff
path: root/randr/mirandr.c
diff options
context:
space:
mode:
authorKeith Packard <keithp@neko.keithp.com>2006-09-16 23:21:37 -0700
committerKeith Packard <keithp@neko.keithp.com>2006-09-17 23:08:12 -0700
commit3e745745fecef1cb59e53bde52ded311b51e1dac (patch)
treeb407f48fe1cb2841c3dfe0d0530936801427ea06 /randr/mirandr.c
parentd17fb9672e238a089e463ac74cc4cd3325b67e1f (diff)
Split RandR implementation into separate files.
RandR is getting too big to live in one file; split into one file per object type (crtc, mode, screen), leaving the rest of the code in randr.c. Code is slowly approaching the point where it will drop-in as a replacement for the old 1.0 implementation.
Diffstat (limited to 'randr/mirandr.c')
-rw-r--r--randr/mirandr.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/randr/mirandr.c b/randr/mirandr.c
index 5aea38d60..a57a157ca 100644
--- a/randr/mirandr.c
+++ b/randr/mirandr.c
@@ -70,16 +70,19 @@ Bool
miRandRInit (ScreenPtr pScreen)
{
rrScrPrivPtr pScrPriv;
+#if RANDR_12_INTERFACE
RRModePtr mode;
RRCrtcPtr crtc;
RROutputPtr output;
xRRModeInfo modeInfo;
char name[64];
+#endif
if (!RRScreenInit (pScreen))
return FALSE;
pScrPriv = rrGetScrPriv(pScreen);
pScrPriv->rrGetInfo = miRRGetInfo;
+#if RANDR_12_INTERFACE
pScrPriv->rrCrtcSet = miRRCrtcSet;
RRScreenSetSizeRange (pScreen,
@@ -111,7 +114,7 @@ miRandRInit (ScreenPtr pScreen)
&crtc, 1, /* crtcs */
RR_Connected))
return FALSE;
- if (!RRCrtcSet (crtc, mode, 0, 0, RR_Rotate_0, 1, &output))
- return FALSE;
+ RRCrtcNotify (crtc, mode, 0, 0, RR_Rotate_0, 1, &output);
+#endif
return TRUE;
}