Lines Matching refs:client
32 ((((uint##bpp##_t)(r) & 0xFF) * client->format.redMax + 127) / 255 \
33 << client->format.redShift | \
34 (((uint##bpp##_t)(g) & 0xFF) * client->format.greenMax + 127) / 255 \
35 << client->format.greenShift | \
36 (((uint##bpp##_t)(b) & 0xFF) * client->format.blueMax + 127) / 255 \
37 << client->format.blueShift)
46 rfbBool HandleCursorShape(rfbClient* client,int xhot, int yhot, int width, int height, uint32_t enc)
56 bytesPerPixel = client->format.bitsPerPixel / 8;
64 if(client->rcSource)
65 free(client->rcSource);
67 client->rcSource = malloc(width * height * bytesPerPixel);
68 if (client->rcSource == NULL)
73 free(client->rcSource);
74 client->rcSource = NULL;
82 if (!ReadFromRFBServer(client, (char *)&rgb, sz_rfbXCursorColors)) {
83 free(client->rcSource);
84 client->rcSource = NULL;
92 if (!ReadFromRFBServer(client, buf, bytesMaskData)) {
93 free(client->rcSource);
94 client->rcSource = NULL;
100 ptr = client->rcSource;
118 client->rcSource[x] = (uint8_t)colors[client->rcSource[x]];
122 ((uint16_t *)client->rcSource)[x] = (uint16_t)colors[client->rcSource[x * 2]];
126 ((uint32_t *)client->rcSource)[x] = colors[client->rcSource[x * 4]];
132 if (!ReadFromRFBServer(client, (char *)client->rcSource, width * height * bytesPerPixel)) {
133 free(client->rcSource);
134 client->rcSource = NULL;
143 if (!ReadFromRFBServer(client, buf, bytesMaskData)) {
144 free(client->rcSource);
145 client->rcSource = NULL;
150 client->rcMask = malloc(width * height);
151 if (client->rcMask == NULL) {
152 free(client->rcSource);
153 client->rcSource = NULL;
158 ptr = client->rcMask;
170 if (client->GotCursorShape != NULL) {
171 client->GotCursorShape(client, xhot, yhot, width, height, bytesPerPixel);