diff options
author | Eamon Walsh <ewalsh@tycho.nsa.gov> | 2007-08-30 11:40:39 -0400 |
---|---|---|
committer | Eamon Walsh <ewalsh@moss-charon.epoch.ncsc.mil> | 2007-08-30 11:40:39 -0400 |
commit | 47ab4d648b31ea1d5800e0bc84cf5f25025bffe3 (patch) | |
tree | 6f153a95bfaaecb8fdd7f6b0e394e678d3446d4d /hw/xnest/Cursor.c | |
parent | 4795df62456b73c6790f271e0a20a83c60496490 (diff) |
devPrivates rework: convert CursorRec and CursorBits over to new interface.
Diffstat (limited to 'hw/xnest/Cursor.c')
-rw-r--r-- | hw/xnest/Cursor.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/hw/xnest/Cursor.c b/hw/xnest/Cursor.c index 134276e7b..138698068 100644 --- a/hw/xnest/Cursor.c +++ b/hw/xnest/Cursor.c @@ -104,8 +104,8 @@ xnestRealizeCursor(ScreenPtr pScreen, CursorPtr pCursor) bg_color.green = pCursor->backGreen; bg_color.blue = pCursor->backBlue; - pCursor->devPriv[pScreen->myNum] = (pointer)xalloc(sizeof(xnestPrivCursor)); - xnestCursorPriv(pCursor, pScreen)->cursor = + xnestSetCursorPriv(pCursor, pScreen, xalloc(sizeof(xnestPrivCursor))); + xnestCursor(pCursor, pScreen) = XCreatePixmapCursor(xnestDisplay, source, mask, &fg_color, &bg_color, pCursor->bits->xhot, pCursor->bits->yhot); @@ -119,7 +119,7 @@ Bool xnestUnrealizeCursor(ScreenPtr pScreen, CursorPtr pCursor) { XFreeCursor(xnestDisplay, xnestCursor(pCursor, pScreen)); - xfree(xnestCursorPriv(pCursor, pScreen)); + xfree(xnestGetCursorPriv(pCursor, pScreen)); return True; } |