diff options
author | Keith Packard <keithp@neko.keithp.com> | 2006-09-17 23:03:23 -0700 |
---|---|---|
committer | Keith Packard <keithp@neko.keithp.com> | 2006-09-17 23:08:12 -0700 |
commit | bf07893947cfca945598e194ed416fda6162b11c (patch) | |
tree | c72ad753ed0ec129a5437a8739c9a54236091121 /randr/rrcrtc.c | |
parent | 3e745745fecef1cb59e53bde52ded311b51e1dac (diff) |
Split out RandR dispatch code from randr.c to rr*dispatch.c.
More disassembly to ease ongoing development.
Diffstat (limited to 'randr/rrcrtc.c')
-rw-r--r-- | randr/rrcrtc.c | 15 |
1 files changed, 11 insertions, 4 deletions
diff --git a/randr/rrcrtc.c b/randr/rrcrtc.c index cc5b24d50..d343c3a57 100644 --- a/randr/rrcrtc.c +++ b/randr/rrcrtc.c @@ -22,7 +22,7 @@ #include "randrstr.h" -static RESTYPE CrtcType; +RESTYPE RRCrtcType; /* * Create a CRTC @@ -144,6 +144,12 @@ RRCrtcNotify (RRCrtcPtr crtc, return TRUE; } +void +RRDeliverCrtcEvent (ClientPtr client, WindowPtr pWin, RRCrtcPtr crtc) +{ + +} + /* * Request that the Crtc be reconfigured */ @@ -216,6 +222,7 @@ RRCrtcDestroyResource (pointer value, XID pid) memmove (pScrPriv->crtcs, pScrPriv->crtcs + 1, (pScrPriv->numCrtcs - (i - 1)) * sizeof (RRCrtcPtr)); --pScrPriv->numCrtcs; + break; } } free (value); @@ -228,11 +235,11 @@ RRCrtcDestroyResource (pointer value, XID pid) Bool RRCrtcInit (void) { - CrtcType = CreateNewResourceType (RRCrtcDestroyResource); - if (!CrtcType) + RRCrtcType = CreateNewResourceType (RRCrtcDestroyResource); + if (!RRCrtcType) return FALSE; #ifdef XResExtension - RegisterResourceName (CrtcType, "CRTC"); + RegisterResourceName (RRCrtcType, "CRTC"); #endif return TRUE; } |