Lines Matching refs:infoPtr

74 xf86InitHardwareCursor(ScreenPtr pScreen, xf86CursorInfoPtr infoPtr)
76 if ((infoPtr->MaxWidth <= 0) || (infoPtr->MaxHeight <= 0))
80 if (!infoPtr->SetCursorPosition ||
81 !infoPtr->LoadCursorImage ||
82 !infoPtr->HideCursor ||
83 !infoPtr->ShowCursor ||
84 !infoPtr->SetCursorColors)
87 if (infoPtr->RealizeCursor) {
90 if (HARDWARE_CURSOR_SOURCE_MASK_INTERLEAVE_1 & infoPtr->Flags) {
91 infoPtr->RealizeCursor = RealizeCursorInterleave1;
93 if (HARDWARE_CURSOR_SOURCE_MASK_INTERLEAVE_8 & infoPtr->Flags) {
94 infoPtr->RealizeCursor = RealizeCursorInterleave8;
96 if (HARDWARE_CURSOR_SOURCE_MASK_INTERLEAVE_16 & infoPtr->Flags) {
97 infoPtr->RealizeCursor = RealizeCursorInterleave16;
99 if (HARDWARE_CURSOR_SOURCE_MASK_INTERLEAVE_32 & infoPtr->Flags) {
100 infoPtr->RealizeCursor = RealizeCursorInterleave32;
102 if (HARDWARE_CURSOR_SOURCE_MASK_INTERLEAVE_64 & infoPtr->Flags) {
103 infoPtr->RealizeCursor = RealizeCursorInterleave64;
105 infoPtr->RealizeCursor = RealizeCursorInterleave0;
108 infoPtr->pScrn = xf86Screens[pScreen->myNum];
118 xf86CursorInfoPtr infoPtr = ScreenPriv->CursorInfoPtr;
122 (*infoPtr->HideCursor)(infoPtr->pScrn);
128 x -= infoPtr->pScrn->frameX0 + ScreenPriv->HotX;
129 y -= infoPtr->pScrn->frameY0 + ScreenPriv->HotY;
132 if (!pCurs->bits->argb || !infoPtr->LoadCursorARGB)
135 bits = (*infoPtr->RealizeCursor)(infoPtr, pCurs);
139 if (!(infoPtr->Flags & HARDWARE_CURSOR_UPDATE_UNHIDDEN))
140 (*infoPtr->HideCursor)(infoPtr->pScrn);
143 if (pCurs->bits->argb && infoPtr->LoadCursorARGB)
144 (*infoPtr->LoadCursorARGB) (infoPtr->pScrn, pCurs);
148 (*infoPtr->LoadCursorImage)(infoPtr->pScrn, bits);
152 (*infoPtr->SetCursorPosition)(infoPtr->pScrn, x, y);
154 (*infoPtr->ShowCursor)(infoPtr->pScrn);
162 xf86CursorInfoPtr infoPtr = ScreenPriv->CursorInfoPtr;
166 (*infoPtr->RealizeCursor)(infoPtr, NullCursor);
168 if (!(infoPtr->Flags & HARDWARE_CURSOR_UPDATE_UNHIDDEN))
169 (*infoPtr->HideCursor)(infoPtr->pScrn);
172 (*infoPtr->LoadCursorImage)(infoPtr->pScrn,
175 (*infoPtr->ShowCursor)(infoPtr->pScrn);
183 xf86CursorInfoPtr infoPtr = ScreenPriv->CursorInfoPtr;
185 x -= infoPtr->pScrn->frameX0 + ScreenPriv->HotX;
186 y -= infoPtr->pScrn->frameY0 + ScreenPriv->HotY;
188 (*infoPtr->SetCursorPosition)(infoPtr->pScrn, x, y);
196 xf86CursorInfoPtr infoPtr = ScreenPriv->CursorInfoPtr;
222 (*infoPtr->SetCursorColors)(infoPtr->pScrn,
225 (*infoPtr->SetCursorColors)(infoPtr->pScrn,
238 RealizeCursorInterleave0(xf86CursorInfoPtr infoPtr, CursorPtr pCurs)
244 int size = (infoPtr->MaxWidth * infoPtr->MaxHeight) >> 2;
254 if (infoPtr->Flags & HARDWARE_CURSOR_INVERT_MASK) {
256 if (!(infoPtr->Flags & HARDWARE_CURSOR_SWAP_SOURCE_AND_MASK))
268 DstPitch = infoPtr->MaxWidth >> CUR_LOG2_BITMAP_PAD;
276 if (infoPtr->Flags & HARDWARE_CURSOR_SWAP_SOURCE_AND_MASK) {
281 if (infoPtr->Flags & HARDWARE_CURSOR_AND_SOURCE_WITH_MASK) {
301 if (infoPtr->Flags & HARDWARE_CURSOR_NIBBLE_SWAPPED) {
321 if (infoPtr->Flags & HARDWARE_CURSOR_INVERT_MASK) {
330 if (infoPtr->Flags & HARDWARE_CURSOR_BIT_ORDER_MSBFIRST) {
345 RealizeCursorInterleave1(xf86CursorInfoPtr infoPtr, CursorPtr pCurs)
351 int size = (infoPtr->MaxWidth * infoPtr->MaxHeight) >> 2;
354 if (!(mem2 = RealizeCursorInterleave0(infoPtr, pCurs)))
388 RealizeCursorInterleave8(xf86CursorInfoPtr infoPtr, CursorPtr pCurs)
394 int size = (infoPtr->MaxWidth * infoPtr->MaxHeight) >> 2;
397 if (!(mem2 = RealizeCursorInterleave0(infoPtr, pCurs)))
423 RealizeCursorInterleave16(xf86CursorInfoPtr infoPtr, CursorPtr pCurs)
429 int size = (infoPtr->MaxWidth * infoPtr->MaxHeight) >> 2;
432 if (!(mem2 = RealizeCursorInterleave0(infoPtr, pCurs)))
458 RealizeCursorInterleave32(xf86CursorInfoPtr infoPtr, CursorPtr pCurs)
464 int size = (infoPtr->MaxWidth * infoPtr->MaxHeight) >> 2;
467 if (!(mem2 = RealizeCursorInterleave0(infoPtr, pCurs)))
493 RealizeCursorInterleave64(xf86CursorInfoPtr infoPtr, CursorPtr pCurs)
499 int size = (infoPtr->MaxWidth * infoPtr->MaxHeight) >> 2;
502 if (!(mem2 = RealizeCursorInterleave0(infoPtr, pCurs)))