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/rrmode.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/rrmode.c')
-rw-r--r-- | randr/rrmode.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/randr/rrmode.c b/randr/rrmode.c index 1eb53c388..3a9d55671 100644 --- a/randr/rrmode.c +++ b/randr/rrmode.c @@ -22,7 +22,7 @@ #include "randrstr.h" -static RESTYPE ModeType; +RESTYPE RRModeType; RRModePtr RRModeGet (ScreenPtr pScreen, @@ -50,7 +50,7 @@ RRModeGet (ScreenPtr pScreen, memcpy (mode->name, name, modeInfo->nameLength); mode->name[modeInfo->nameLength] = '\0'; mode->id = FakeClientID(0); - if (!AddResource (mode->id, ModeType, (pointer) mode)) + if (!AddResource (mode->id, RRModeType, (pointer) mode)) return NULL; ++mode->refcnt; pScrPriv->changed = TRUE; @@ -75,11 +75,11 @@ RRModeDestroyResource (pointer value, XID pid) Bool RRModeInit (void) { - ModeType = CreateNewResourceType (RRModeDestroyResource); - if (!ModeType) + RRModeType = CreateNewResourceType (RRModeDestroyResource); + if (!RRModeType) return FALSE; #ifdef XResExtension - RegisterResourceName (ModeType, "MODE"); + RegisterResourceName (RRModeType, "MODE"); #endif return TRUE; } |