mirror of
https://github.com/X11Libre/xserver.git
synced 2026-10-22 01:20:26 +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
|
|
@ -226,7 +226,8 @@ xf86_set_cursor_colors (ScrnInfoPtr scrn, int bg, int fg)
|
|||
xf86CrtcConfigPtr xf86_config = XF86_CRTC_CONFIG_PTR(scrn);
|
||||
CursorPtr cursor = xf86_config->cursor;
|
||||
int c;
|
||||
CARD8 *bits = cursor ? cursor->devPriv[screen->myNum] : NULL;
|
||||
CARD8 *bits = cursor ? dixLookupPrivate(&cursor->devPrivates,
|
||||
screen) : NULL;
|
||||
|
||||
/* Save ARGB versions of these colors */
|
||||
xf86_config->cursor_fg = (CARD32) fg | 0xff000000;
|
||||
|
|
@ -612,7 +613,7 @@ xf86_reload_cursors (ScreenPtr screen)
|
|||
else
|
||||
#endif
|
||||
(*cursor_info->LoadCursorImage)(cursor_info->pScrn,
|
||||
cursor->devPriv[screen->myNum]);
|
||||
dixLookupPrivate(&cursor->devPrivates, screen));
|
||||
|
||||
(*cursor_info->SetCursorPosition)(cursor_info->pScrn, x, y);
|
||||
(*cursor_info->ShowCursor)(cursor_info->pScrn);
|
||||
|
|
|
|||
Loading…
Reference in a new issue