mirror of
https://github.com/X11Libre/xserver.git
synced 2026-10-14 00:01:20 +00:00
exa: add GC private
This commit is contained in:
parent
5cc67ae94c
commit
5e6a06fe69
2 changed files with 22 additions and 1 deletions
11
exa/exa.c
11
exa/exa.c
|
|
@ -41,6 +41,8 @@ static int exaScreenPrivateKeyIndex;
|
|||
DevPrivateKey exaScreenPrivateKey = &exaScreenPrivateKeyIndex;
|
||||
static int exaPixmapPrivateKeyIndex;
|
||||
DevPrivateKey exaPixmapPrivateKey = &exaPixmapPrivateKeyIndex;
|
||||
static int exaGCPrivateKeyIndex;
|
||||
DevPrivateKey exaGCPrivateKey = &exaGCPrivateKeyIndex;
|
||||
|
||||
#ifdef MITSHM
|
||||
static ShmFuncs exaShmFuncs = { NULL, NULL };
|
||||
|
|
@ -661,6 +663,8 @@ static GCFuncs exaGCFuncs = {
|
|||
static int
|
||||
exaCreateGC (GCPtr pGC)
|
||||
{
|
||||
ExaGCPriv(pGC);
|
||||
|
||||
if (!fbCreateGC (pGC))
|
||||
return FALSE;
|
||||
|
||||
|
|
@ -890,6 +894,13 @@ exaDriverInit (ScreenPtr pScreen,
|
|||
|
||||
exaDDXDriverInit(pScreen);
|
||||
|
||||
if (!dixRequestPrivate(exaGCPrivateKey, sizeof(ExaGCPrivRec))) {
|
||||
LogMessage(X_WARNING,
|
||||
"EXA(%d): Failed to allocate GC private\n",
|
||||
pScreen->myNum);
|
||||
return FALSE;
|
||||
}
|
||||
|
||||
/*
|
||||
* Replace various fb screen functions
|
||||
*/
|
||||
|
|
|
|||
Loading…
Reference in a new issue