Lines Matching defs:sprite

63  * contains amongst other things the sprite trace and delivery information.
219 ti->sprite.spriteTrace = calloc(32, sizeof(*ti->sprite.spriteTrace));
220 if (!ti->sprite.spriteTrace) {
224 ti->sprite.spriteTraceSize = 32;
225 ti->sprite.spriteTrace[0] = screenInfo.screens[0]->root;
226 ti->sprite.hot.pScreen = screenInfo.screens[0];
227 ti->sprite.hotPhys.pScreen = screenInfo.screens[0];
251 free(ti->sprite.spriteTrace);
252 ti->sprite.spriteTrace = NULL;
362 ti->sprite.spriteTraceGood = 0;
477 TouchBuildDependentSpriteTrace(DeviceIntPtr dev, SpritePtr sprite)
483 /* All touches should have the same sprite trace, so find and reuse an
484 * existing touch's sprite if possible, else use the device's sprite. */
487 t->touches[i].sprite.spriteTraceGood > 0)
490 srcsprite = &t->touches[i].sprite;
491 else if (dev->spriteInfo->sprite)
492 srcsprite = dev->spriteInfo->sprite;
496 return CopySprite(srcsprite, sprite);
500 * Ensure a window trace is present in ti->sprite, constructing one for
508 SpritePtr sprite = &ti->sprite;
513 sprite->spriteTrace[0] =
514 sourcedev->spriteInfo->sprite->hotPhys.pScreen->root;
515 XYToWindow(sprite, ev->device_event.root_x, ev->device_event.root_y);
517 else if (!TouchBuildDependentSpriteTrace(sourcedev, sprite))
520 if (sprite->spriteTraceGood <= 0)
525 ti->listeners = calloc(sprite->spriteTraceGood + 2, sizeof(*ti->listeners));
527 sprite->spriteTraceGood = 0;
843 SpritePtr sprite = &ti->sprite;
856 for (i = 0; i < sprite->spriteTraceGood; i++) {
857 win = sprite->spriteTrace[i];
863 for (i = sprite->spriteTraceGood - 1; i >= 0; i--) {
866 win = sprite->spriteTrace[i];