mirror of
https://github.com/X11Libre/xserver.git
synced 2026-09-18 19:52:21 +00:00
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.
This commit is contained in:
parent
d17fb9672e
commit
3e745745fe
8 changed files with 852 additions and 437 deletions
|
|
@ -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;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue