mirror of
https://gitlab.freedesktop.org/xorg/xserver.git
synced 2025-12-24 16:00:05 +01:00
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>
(cherry picked from commit 96e0ab5496)
This commit is contained in:
parent
3484ef2de5
commit
97cae5e07a
1 changed files with 6 additions and 2 deletions
|
|
@ -619,8 +619,9 @@ xf86SbusUseBuiltinMode(ScrnInfoPtr pScrn, sbusDevicePtr psdp)
|
|||
pScrn->virtualY = psdp->height;
|
||||
}
|
||||
|
||||
static sbusPaletteKeyIndex;
|
||||
static DevPrivateKey sbusPaletteKey = &sbusPaletteKeyIndex;
|
||||
static DevPrivateKeyRec sbusPaletteKeyRec;
|
||||
#define sbusPaletteKey (&sbusPaletteKeyRec)
|
||||
|
||||
typedef struct _sbusCmap {
|
||||
sbusDevicePtr psdp;
|
||||
CloseScreenProcPtr CloseScreen;
|
||||
|
|
@ -692,6 +693,9 @@ xf86SbusHandleColormaps(ScreenPtr pScreen, sbusDevicePtr psdp)
|
|||
struct fbcmap fbcmap;
|
||||
unsigned char data[2];
|
||||
|
||||
if (!dixRegisterPrivateKey(sbusPaletteKey, PRIVATE_SCREEN, 0))
|
||||
FatalError("Cannot register sbus private key");
|
||||
|
||||
cmap = xnfcalloc(1, sizeof(sbusCmapRec));
|
||||
dixSetPrivate(&pScreen->devPrivates, sbusPaletteKey, cmap);
|
||||
cmap->psdp = psdp;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue