Convert sbusPaletteKey to latest DevPrivate API
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com> Reviewed-by: Mark Kettenis <kettenis@openbsd.org> Reviewed-by: Dave Airlie <airlied@redhat.com>
This commit is contained in:
parent
ba883a0f34
commit
96e0ab5496
|
@ -619,8 +619,9 @@ xf86SbusUseBuiltinMode(ScrnInfoPtr pScrn, sbusDevicePtr psdp)
|
||||||
pScrn->virtualY = psdp->height;
|
pScrn->virtualY = psdp->height;
|
||||||
}
|
}
|
||||||
|
|
||||||
static sbusPaletteKeyIndex;
|
static DevPrivateKeyRec sbusPaletteKeyRec;
|
||||||
static DevPrivateKey sbusPaletteKey = &sbusPaletteKeyIndex;
|
#define sbusPaletteKey (&sbusPaletteKeyRec)
|
||||||
|
|
||||||
typedef struct _sbusCmap {
|
typedef struct _sbusCmap {
|
||||||
sbusDevicePtr psdp;
|
sbusDevicePtr psdp;
|
||||||
CloseScreenProcPtr CloseScreen;
|
CloseScreenProcPtr CloseScreen;
|
||||||
|
@ -692,6 +693,9 @@ xf86SbusHandleColormaps(ScreenPtr pScreen, sbusDevicePtr psdp)
|
||||||
struct fbcmap fbcmap;
|
struct fbcmap fbcmap;
|
||||||
unsigned char data[2];
|
unsigned char data[2];
|
||||||
|
|
||||||
|
if (!dixRegisterPrivateKey(sbusPaletteKey, PRIVATE_SCREEN, 0))
|
||||||
|
FatalError("Cannot register sbus private key");
|
||||||
|
|
||||||
cmap = xnfcalloc(1, sizeof(sbusCmapRec));
|
cmap = xnfcalloc(1, sizeof(sbusCmapRec));
|
||||||
dixSetPrivate(&pScreen->devPrivates, sbusPaletteKey, cmap);
|
dixSetPrivate(&pScreen->devPrivates, sbusPaletteKey, cmap);
|
||||||
cmap->psdp = psdp;
|
cmap->psdp = psdp;
|
||||||
|
|
Loading…
Reference in New Issue
Block a user