mirror of
https://github.com/X11Libre/xserver.git
synced 2026-09-18 19:52:21 +00:00
Split out RandR dispatch code from randr.c to rr*dispatch.c.
More disassembly to ease ongoing development.
This commit is contained in:
parent
3e745745fe
commit
bf07893947
8 changed files with 1575 additions and 1087 deletions
|
|
@ -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;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue