summaryrefslogtreecommitdiff
path: root/hw/xnest/XNCursor.h
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/xnest/XNCursor.h
parent4795df62456b73c6790f271e0a20a83c60496490 (diff)
devPrivates rework: convert CursorRec and CursorBits over to new interface.
Diffstat (limited to 'hw/xnest/XNCursor.h')
-rw-r--r--hw/xnest/XNCursor.h9
1 files changed, 6 insertions, 3 deletions
diff --git a/hw/xnest/XNCursor.h b/hw/xnest/XNCursor.h
index ffec9eb0a..9705f6bea 100644
--- a/hw/xnest/XNCursor.h
+++ b/hw/xnest/XNCursor.h
@@ -19,11 +19,14 @@ typedef struct {
Cursor cursor;
} xnestPrivCursor;
-#define xnestCursorPriv(pCursor, pScreen) \
- ((xnestPrivCursor *)((pCursor)->devPriv[pScreen->myNum]))
+#define xnestGetCursorPriv(pCursor, pScreen) \
+ ((xnestPrivCursor *)dixLookupPrivate(&(pCursor)->devPrivates, pScreen))
+
+#define xnestSetCursorPriv(pCursor, pScreen, v) \
+ dixSetPrivate(&(pCursor)->devPrivates, pScreen, v)
#define xnestCursor(pCursor, pScreen) \
- (xnestCursorPriv(pCursor, pScreen)->cursor)
+ (xnestGetCursorPriv(pCursor, pScreen)->cursor)
Bool xnestRealizeCursor(ScreenPtr pScreen, CursorPtr pCursor);
Bool xnestUnrealizeCursor(ScreenPtr pScreen, CursorPtr pCursor);