mirror of
https://github.com/X11Libre/xserver.git
synced 2026-10-23 01:29:58 +00:00
devPrivates rework: convert CursorRec and CursorBits over to new interface.
This commit is contained in:
parent
4795df6245
commit
47ab4d648b
14 changed files with 75 additions and 51 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Reference in a new issue