diff options
author | Keith Packard <keithp@mandolin.keithp.com> | 2006-11-08 21:36:35 -0800 |
---|---|---|
committer | Keith Packard <keithp@mandolin.keithp.com> | 2006-11-08 21:36:35 -0800 |
commit | ec77a95a02329a2ee3a94d7de9d2a234aecb9ca0 (patch) | |
tree | 205413395daca04433d8d97b67ca702425d35479 /randr/randr.c | |
parent | 20e9144c0746943624ff77a61791b8596f3f8458 (diff) |
Allow RandR objects to be created before the associated ScreenRec.
xf86 drivers need to create RandR object in the PreInit stage,
before the ScreenRec is allocated. Changing the RandR DIX code
to permit this required the addition of functions that later associate the
objects with the related screen.
An additional change is that modes are now global, and no longer associated
with a specific screen. This change actually makes mode management cleaner
as there is no more per-screen list of modes to deal with.
This changes the RandR 1.2 ABI/API for drivers.
Diffstat (limited to 'randr/randr.c')
-rw-r--r-- | randr/randr.c | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/randr/randr.c b/randr/randr.c index 7b39e8045..4426c4773 100644 --- a/randr/randr.c +++ b/randr/randr.c @@ -103,8 +103,6 @@ RRCloseScreen (int i, ScreenPtr pScreen) RRCrtcDestroy (pScrPriv->crtcs[j]); for (j = pScrPriv->numOutputs - 1; j >= 0; j--) RROutputDestroy (pScrPriv->outputs[j]); - for (j = pScrPriv->numModes - 1; j >= 0; j--) - RRModeDestroy (pScrPriv->modes[j]); xfree (pScrPriv); RRNScreens -= 1; /* ok, one fewer screen with RandR running */ @@ -257,8 +255,6 @@ Bool RRScreenInit(ScreenPtr pScreen) wrap (pScrPriv, pScreen, CloseScreen, RRCloseScreen); - pScrPriv->numModes = 0; - pScrPriv->modes = NULL; pScrPriv->numOutputs = 0; pScrPriv->outputs = NULL; pScrPriv->numCrtcs = 0; |