mirror of
https://github.com/X11Libre/xserver.git
synced 2026-03-30 14:14:41 +00:00
XQuartz: Fix build regression from faeebead7b
Signed-off-by: Jeremy Huddleston <jeremyhu@apple.com>
This commit is contained in:
@@ -205,14 +205,14 @@ DRIScreenInit(ScreenPtr pScreen)
|
||||
DRIScreenPrivPtr pDRIPriv;
|
||||
int i;
|
||||
|
||||
if (!dixRegisterPrivateKey(&DRIScreenPrivateKeyRec, PRIVATE_SCREEN, 0))
|
||||
return FALSE:
|
||||
if (!dixRegisterPrivateKey(&DRIWindowPrivateKeyRec, PRIVATE_WINDOW, 0))
|
||||
return FALSE:
|
||||
if (!dixRegisterPrivateKey(&DRIPixmapPrivateKeyRec, PRIVATE_PIXMAP, 0))
|
||||
return FALSE:
|
||||
if (!dixRegisterPrivateKey(&DRIPixmapBufferPrivateKeyRec, PRIVATE_PIXMAP, 0))
|
||||
return FALSE:
|
||||
if (!dixRegisterPrivateKey(&DRIScreenPrivKeyRec, PRIVATE_SCREEN, 0))
|
||||
return FALSE;
|
||||
if (!dixRegisterPrivateKey(&DRIWindowPrivKeyRec, PRIVATE_WINDOW, 0))
|
||||
return FALSE;
|
||||
if (!dixRegisterPrivateKey(&DRIPixmapPrivKeyRec, PRIVATE_PIXMAP, 0))
|
||||
return FALSE;
|
||||
if (!dixRegisterPrivateKey(&DRIPixmapBufferPrivKeyRec, PRIVATE_PIXMAP, 0))
|
||||
return FALSE;
|
||||
|
||||
pDRIPriv = (DRIScreenPrivPtr) calloc(1, sizeof(DRIScreenPrivRec));
|
||||
if (!pDRIPriv) {
|
||||
|
||||
@@ -530,18 +530,12 @@ DRIWrapInit(ScreenPtr pScreen) {
|
||||
if(!dixRegisterPrivateKey(&driGCKeyRec, PRIVATE_GC, sizeof(DRIGCRec)))
|
||||
return FALSE;
|
||||
|
||||
if(!dixRegisterPrivateKey(&driWrapScreenKeyRec, PRIVATE_WINDOW, sizeof(DRIWrapScreenRec)))
|
||||
return FALSE;
|
||||
|
||||
pScreenPriv = malloc(sizeof(*pScreenPriv));
|
||||
|
||||
if(NULL == pScreenPriv)
|
||||
if(!dixRegisterPrivateKey(&driWrapScreenKeyRec, PRIVATE_SCREEN, sizeof(DRIWrapScreenRec)))
|
||||
return FALSE;
|
||||
|
||||
pScreenPriv = dixGetPrivateAddr(&pScreen->devPrivates, &driWrapScreenKeyRec);
|
||||
pScreenPriv->CreateGC = pScreen->CreateGC;
|
||||
pScreen->CreateGC = DRICreateGC;
|
||||
|
||||
dixSetPrivate(&pScreen->devPrivates, driWrapScreenKey, pScreenPriv);
|
||||
|
||||
return TRUE;
|
||||
}
|
||||
|
||||
@@ -58,7 +58,7 @@ typedef struct {
|
||||
} QuartzCursorScreenRec, *QuartzCursorScreenPtr;
|
||||
|
||||
static DevPrivateKeyRec darwinCursorScreenKeyRec;
|
||||
#define darwinCursorScreenKey (&darwinCursorScreenKey)
|
||||
#define darwinCursorScreenKey (&darwinCursorScreenKeyRec)
|
||||
|
||||
#define CURSOR_PRIV(pScreen) ((QuartzCursorScreenPtr) \
|
||||
dixLookupPrivate(&pScreen->devPrivates, darwinCursorScreenKey))
|
||||
@@ -359,7 +359,7 @@ QuartzInitCursor(ScreenPtr pScreen)
|
||||
if (!miDCInitialize(pScreen, &quartzScreenFuncsRec))
|
||||
return FALSE;
|
||||
|
||||
if (!dixRegisterPrivate(&darwinCursorScreenKeyRec, PRIVATE_SCREEN, 0))
|
||||
if (!dixRegisterPrivateKey(&darwinCursorScreenKeyRec, PRIVATE_SCREEN, 0))
|
||||
return FALSE;
|
||||
|
||||
ScreenPriv = calloc(1, sizeof(QuartzCursorScreenRec));
|
||||
|
||||
Reference in New Issue
Block a user