Lines Matching defs:pCursor

153 winLoadCursor (ScreenPtr pScreen, CursorPtr pCursor, int screen)
175 pCursor->bits->width, pCursor->bits->height,
176 pCursor->bits->xhot, pCursor->bits->yhot
181 dForeY = BRIGHTNESS(pCursor->fore);
182 dBackY = BRIGHTNESS(pCursor->back);
186 if (pScreenPriv->cursor.sm_cx < pCursor->bits->width ||
187 pScreenPriv->cursor.sm_cy < pCursor->bits->height)
191 pCursor->bits->width, pCursor->bits->height);
200 nCX = min(pScreenPriv->cursor.sm_cx, pCursor->bits->width);
201 nCY = min(pScreenPriv->cursor.sm_cy, pCursor->bits->height);
210 if (pCursor->bits->emptyMask)
217 int nXPix = BitmapBytePad(pCursor->bits->width) * y + x;
221 pXor[nWinPix] = reverse (~pCursor->bits->source[nXPix]);
223 pXor[nWinPix] = reverse (pCursor->bits->source[nXPix]);
233 int nXPix = BitmapBytePad(pCursor->bits->width) * y + x;
235 unsigned char mask = pCursor->bits->mask[nXPix];
238 pXor[nWinPix] = reverse (~pCursor->bits->source[nXPix] & mask);
240 pXor[nWinPix] = reverse (pCursor->bits->source[nXPix] & mask);
249 if (pCursor->bits->argb)
272 src = &(pCursor->bits->argb[y * pCursor->bits->width]);
298 pbmi->bmiColors[1].rgbRed = pCursor->backRed>>8; /* Background */
299 pbmi->bmiColors[1].rgbGreen = pCursor->backGreen>>8;
300 pbmi->bmiColors[1].rgbBlue = pCursor->backBlue>>8;
302 pbmi->bmiColors[2].rgbRed = pCursor->foreRed>>8; /* Foreground */
303 pbmi->bmiColors[2].rgbGreen = pCursor->foreGreen>>8;
304 pbmi->bmiColors[2].rgbBlue = pCursor->foreBlue>>8;
327 int nXPix = BitmapBytePad(pCursor->bits->width) * y + (x/8);
328 bit = ~reverse(~pCursor->bits->source[nXPix] & pCursor->bits->mask[nXPix]);
347 pCursor->bits->xhot, pCursor->bits->yhot);
367 ii.xHotspot = pCursor->bits->xhot;
368 ii.yHotspot = pCursor->bits->yhot;
386 ii.xHotspot = pCursor->bits->xhot;
387 ii.yHotspot = pCursor->bits->yhot;
413 pCursor->bits->xhot, pCursor->bits->yhot,
438 winRealizeCursor (DeviceIntPtr pDev, ScreenPtr pScreen, CursorPtr pCursor)
440 if(pCursor == NULL || pCursor->bits == NULL)
454 winUnrealizeCursor(DeviceIntPtr pDev, ScreenPtr pScreen, CursorPtr pCursor)
465 winSetCursor (DeviceIntPtr pDev, ScreenPtr pScreen, CursorPtr pCursor, int x, int y)
472 WIN_DEBUG_MSG("winSetCursor: cursor=%p\n", pCursor);
503 if (pCursor == NULL)
522 winLoadCursor (pScreen, pCursor, pScreen->myNum);