Lines Matching +full:0 +full:x80
13 unsigned int line = 0, i, r, g, b, x, y, pixel; in cursor_parse_xpm()
31 for (i = 0; i < colors; i++, line++) { in cursor_parse_xpm()
34 ctab[idx] = (0xff << 24) | (b << 16) | (g << 8) | r; in cursor_parse_xpm()
37 if (strcmp(name, "None") == 0) { in cursor_parse_xpm()
38 ctab[idx] = 0x00000000; in cursor_parse_xpm()
51 for (pixel = 0, y = 0; y < height; y++, line++) { in cursor_parse_xpm()
52 for (x = 0; x < height; x++, pixel++) { in cursor_parse_xpm()
66 for (y = 0; y < c->height; y++) { in cursor_print_ascii_art()
68 for (x = 0; x < c->width; x++, data++) { in cursor_print_ascii_art()
69 if ((*data & 0xff000000) != 0xff000000) { in cursor_print_ascii_art()
71 } else if ((*data & 0x00ffffff) == 0x00ffffff) { in cursor_print_ascii_art()
73 } else if ((*data & 0x00ffffff) == 0x00000000) { in cursor_print_ascii_art()
140 const uint32_t inverted = 0x80000000; in cursor_set_mono()
147 for (y = 0; y < c->height; y++) { in cursor_set_mono()
148 bit = 0x80; in cursor_set_mono()
149 for (x = 0; x < c->width; x++, data++) { in cursor_set_mono()
155 *data = 0x00000000; in cursor_set_mono()
158 *data = 0x00000000; in cursor_set_mono()
160 *data = 0xff000000 | foreground; in cursor_set_mono()
162 *data = 0xff000000 | background; in cursor_set_mono()
165 if (bit == 0) { in cursor_set_mono()
166 bit = 0x80; in cursor_set_mono()
180 for (y = 0; y < c->height; y++) { in cursor_set_mono()
181 for (x = 0; x < c->width; x++, data++) { in cursor_set_mono()
182 if (*data == 0 /* transparent */ && in cursor_set_mono()
183 ((x > 0 && data[-1] == inverted) || in cursor_set_mono()
185 (y > 0 && data[-c->width] == inverted) || in cursor_set_mono()
187 *data = 0xff000000 | background; in cursor_set_mono()
192 for (x = 0; x < c->width * c->height; x++, data++) { in cursor_set_mono()
194 *data = 0xff000000 | foreground; in cursor_set_mono()
207 memset(mask, 0, bpl * c->height); in cursor_get_mono_mask()
208 for (y = 0; y < c->height; y++) { in cursor_get_mono_mask()
209 bit = 0x80; in cursor_get_mono_mask()
210 for (x = 0; x < c->width; x++, data++) { in cursor_get_mono_mask()
211 if ((*data & 0x80000000) == 0x0) { /* Alpha < 0x80 (128) */ in cursor_get_mono_mask()
212 if (transparent != 0) { in cursor_get_mono_mask()
216 if (transparent == 0) { in cursor_get_mono_mask()
221 if (bit == 0) { in cursor_get_mono_mask()
222 bit = 0x80; in cursor_get_mono_mask()