mirror of
https://gitlab.freedesktop.org/xorg/xserver.git
synced 2026-02-01 16:10:30 +01:00
use dixLookupPrivate
This commit is contained in:
parent
a710262a0d
commit
2846c3868a
1 changed files with 3 additions and 1 deletions
|
|
@ -49,10 +49,12 @@ typedef struct {
|
|||
DestroyPixmapProcPtr *DestroyPixmap;
|
||||
__GLXscreen *screen;
|
||||
destroyGLXscreenProcPtr destroyGLXscreen;
|
||||
glitz_glucose_screen_info_t *screen_info;
|
||||
} GLucoseScreenPrivRec, *GLucoseScreenPrivPtr;
|
||||
|
||||
extern int glucoseScreenPrivateIndex;
|
||||
#define GLucoseGetScreenPriv(s) ((GLucoseScreenPrivPtr)(s)->devPrivates[glucoseScreenPrivateIndex].ptr)
|
||||
#define GLucoseGetScreenPriv(s) ((GLucoseScreenPrivPtr) \
|
||||
dixLookupPrivate(&(s)->devPrivates, glucoseGetScreenPrivateKey()))
|
||||
#define GLucoseScreenPriv(s) GLucoseScreenPrivPtr pGLucoseScr = GLucoseGetScreenPriv(s)
|
||||
|
||||
#endif /* GLUCOSE_H */
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue