Lines Matching defs:pAttrs

28     PVIDEO_POINTER_ATTRIBUTES pAttrs = pDev->pointer.pAttrs;
31 Assert(pAttrs);
37 pAttrs->Width = min(srcMaskW, pDev->pointer.caps.MaxWidth);
38 pAttrs->Height = min(srcMaskH, pDev->pointer.caps.MaxHeight);
39 pAttrs->WidthInBytes = pAttrs->Width * 4;
43 pDst = pAttrs->Pixels;
44 dstBytesPerLine = (pAttrs->Width+7)/8;
46 for (y=0; y<pAttrs->Height; ++y)
51 /* convert XOR mask to RGB0 DIB, it start in pAttrs->Pixels should be 4bytes aligned */
53 pDst = pAttrs->Pixels + RT_ALIGN_T(dstBytesPerLine*pAttrs->Height, 4, ULONG);
54 dstBytesPerLine = pAttrs->Width * 4;
56 for (y=0; y<pAttrs->Height; ++y)
58 for (x=0, bit=7; x<pAttrs->Width; ++x, --bit)
241 PVIDEO_POINTER_ATTRIBUTES pAttrs = pDev->pointer.pAttrs;
246 Assert(pAttrs);
252 pAttrs->Width = min(srcMaskW, pDev->pointer.caps.MaxWidth);
253 pAttrs->Height = min(srcMaskH, pDev->pointer.caps.MaxHeight);
254 pAttrs->WidthInBytes = pAttrs->Width * 4;
261 pDst = pAttrs->Pixels;
262 dstBytesPerLine = (pAttrs->Width+7)/8;
264 memset(pDst, 0xFF, dstBytesPerLine*pAttrs->Height);
266 for (y=0; y<pAttrs->Height; ++y)
268 for (x=0, bit=7; x<pAttrs->Width; ++x, --bit)
292 pDst = pAttrs->Pixels;
293 dstBytesPerLine = (pAttrs->Width+7)/8;
295 for (y=0; y<pAttrs->Height; ++y)
310 /* copy 32bit bitmap to XOR DIB in pAttrs->pixels, it start there should be 4bytes aligned */
312 pDst = pAttrs->Pixels + RT_ALIGN_T(dstBytesPerLine*pAttrs->Height, 4, ULONG);
313 dstBytesPerLine = pAttrs->Width * 4;
315 for (y=0; y<pAttrs->Height; ++y)
368 pDev->pointer.pAttrs = (PVIDEO_POINTER_ATTRIBUTES) EngAllocMem(0, pDev->pointer.cbAttrs, MEM_ALLOC_TAG);
369 if (!pDev->pointer.pAttrs)
375 pDev->pointer.pAttrs->Flags = pDev->pointer.caps.Flags;
376 pDev->pointer.pAttrs->Width = pDev->pointer.caps.MaxWidth;
377 pDev->pointer.pAttrs->Height = pDev->pointer.caps.MaxHeight;
378 pDev->pointer.pAttrs->WidthInBytes = bytesPerLine;
379 pDev->pointer.pAttrs->Enable = 0;
380 pDev->pointer.pAttrs->Column = 0;
381 pDev->pointer.pAttrs->Row = 0;
431 if (!pDev->pointer.pAttrs)
433 WARN(("pDev->pointer.pAttrs == NULL"));
467 pDev->pointer.pAttrs->Flags = VIDEO_MODE_MONO_POINTER;
478 pDev->pointer.pAttrs->Flags = VIDEO_MODE_COLOR_POINTER;
483 * Note: pDev->pointer.pAttrs->Enable is also used to pass hotspot coordinates in it's high word
486 pDev->pointer.pAttrs->Column = (SHORT) (x - xHot);
487 pDev->pointer.pAttrs->Row = (SHORT) (y - yHot);
489 pDev->pointer.pAttrs->Enable = VBOX_MOUSE_POINTER_SHAPE;
490 pDev->pointer.pAttrs->Enable |= (yHot & 0xFF) << 24;
491 pDev->pointer.pAttrs->Enable |= (xHot & 0xFF) << 16;
495 pDev->pointer.pAttrs->Enable |= VBOX_MOUSE_POINTER_VISIBLE;
500 pDev->pointer.pAttrs->Enable |= VBOX_MOUSE_POINTER_ALPHA;
506 pDev->pointer.pAttrs->Flags |= VIDEO_MODE_ANIMATE_START;
510 pDev->pointer.pAttrs->Flags |= VIDEO_MODE_ANIMATE_UPDATE;