mirror of
https://github.com/X11Libre/xserver.git
synced 2026-04-14 17:18:09 +00:00
Prepare for array-index based devPrivates.
TODO: static indices can be made just an int; some indices can be combined.
This commit is contained in:
committed by
Eamon Walsh
parent
ec7907f8fa
commit
ebea78cdba
@@ -280,7 +280,8 @@ miScreenInit(
|
||||
return miScreenDevPrivateInit(pScreen, width, pbits);
|
||||
}
|
||||
|
||||
static DevPrivateKey privateKey = &privateKey;
|
||||
static int privateKeyIndex;
|
||||
static DevPrivateKey privateKey = &privateKeyIndex;
|
||||
|
||||
_X_EXPORT DevPrivateKey
|
||||
miAllocateGCPrivateIndex()
|
||||
@@ -288,7 +289,8 @@ miAllocateGCPrivateIndex()
|
||||
return privateKey;
|
||||
}
|
||||
|
||||
_X_EXPORT DevPrivateKey miZeroLineScreenKey = &miZeroLineScreenKey;
|
||||
static int miZeroLineScreenKeyIndex;
|
||||
_X_EXPORT DevPrivateKey miZeroLineScreenKey = &miZeroLineScreenKeyIndex;
|
||||
|
||||
_X_EXPORT void
|
||||
miSetZeroLineBias(ScreenPtr pScreen, unsigned int bias)
|
||||
|
||||
Reference in New Issue
Block a user