Lines Matching refs:pPointer
129 static DECLCALLBACK(void) VRDEColorPointer(HVRDESERVER hServer, const VRDECOLORPOINTER *pPointer);
869 * @param pPointer The pointer shape information.
872 const VRDECOLORPOINTER *pPointer)
877 cursor->width = pPointer->u16Width;
878 cursor->height = pPointer->u16Height;
880 unsigned char *mem = (unsigned char *)malloc(pPointer->u16Width * pPointer->u16Height * VNC_SIZEOFRGBA);
883 unsigned char *maskmem = (unsigned char *)malloc(pPointer->u16Width * pPointer->u16Height);
886 unsigned char *mask = (unsigned char *)pPointer + sizeof(VRDECOLORPOINTER);
888 for(int i = pPointer->u16Height - 1; i >= 0 ; i--)
890 for(uint16_t j = 0; j < pPointer->u16Width/8; j ++)
892 *maskmem = ~(*(mask + i * (pPointer->u16Width / 8) + j));
896 unsigned char *color = (unsigned char *)pPointer + sizeof(VRDECOLORPOINTER) + pPointer->u16MaskLen;
897 for(int i = pPointer->u16Height - 1; i >= 0 ; i--)
899 for(uint16_t j = 0; j < pPointer->u16Width; j ++)
902 *(mem++) = *(color + (i * pPointer->u16Width *3 + j * 3 + 2));
903 *(mem++) = *(color + (i * pPointer->u16Width *3 + j * 3 + 1));
904 *(mem++) = *(color + (i * pPointer->u16Width *3 + j * 3));
909 cursor->xhot = pPointer->u16HotX;
910 cursor->yhot = pPointer->u16HotY;