summaryrefslogtreecommitdiff
path: root/hw/xgl/glx
diff options
context:
space:
mode:
authorEamon Walsh <ewalsh@tycho.nsa.gov>2007-08-30 11:40:39 -0400
committerEamon Walsh <ewalsh@moss-charon.epoch.ncsc.mil>2007-08-30 11:40:39 -0400
commit47ab4d648b31ea1d5800e0bc84cf5f25025bffe3 (patch)
tree6f153a95bfaaecb8fdd7f6b0e394e678d3446d4d /hw/xgl/glx
parent4795df62456b73c6790f271e0a20a83c60496490 (diff)
devPrivates rework: convert CursorRec and CursorBits over to new interface.
Diffstat (limited to 'hw/xgl/glx')
-rw-r--r--hw/xgl/glx/xglx.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/hw/xgl/glx/xglx.c b/hw/xgl/glx/xglx.c
index 657afc075..d7f0ed3f9 100644
--- a/hw/xgl/glx/xglx.c
+++ b/hw/xgl/glx/xglx.c
@@ -121,10 +121,10 @@ typedef struct _xglxCursor {
} xglxCursorRec, *xglxCursorPtr;
#define XGLX_GET_CURSOR_PRIV(pCursor, pScreen) \
- ((xglxCursorPtr) (pCursor)->devPriv[(pScreen)->myNum])
+ ((xglxCursorPtr)dixLookupPrivate(&(pCursor)->devPrivates, pScreen))
#define XGLX_SET_CURSOR_PRIV(pCursor, pScreen, v) \
- ((pCursor)->devPriv[(pScreen)->myNum] = (pointer) v)
+ dixSetPrivate(&(pCursor)->devPrivates, pScreen, v)
#define XGLX_CURSOR_PRIV(pCursor, pScreen) \
xglxCursorPtr pCursorPriv = XGLX_GET_CURSOR_PRIV (pCursor, pScreen)