Lines Matching defs:colour
274 /* colour maps */
798 #define SPLITCOLOUR15(colour, rv) \
800 rv.red = ((colour >> 7) & 0xf8) | ((colour >> 12) & 0x7); \
801 rv.green = ((colour >> 2) & 0xf8) | ((colour >> 8) & 0x7); \
802 rv.blue = ((colour << 3) & 0xf8) | ((colour >> 2) & 0x7); \
805 #define SPLITCOLOUR16(colour, rv) \
807 rv.red = ((colour >> 8) & 0xf8) | ((colour >> 13) & 0x7); \
808 rv.green = ((colour >> 3) & 0xfc) | ((colour >> 9) & 0x3); \
809 rv.blue = ((colour << 3) & 0xf8) | ((colour >> 2) & 0x7); \
812 #define SPLITCOLOUR24(colour, rv) \
814 rv.blue = (colour & 0xff0000) >> 16; \
815 rv.green = (colour & 0x00ff00) >> 8; \
816 rv.red = (colour & 0x0000ff); \
840 translate_colour(uint32 colour)
846 SPLITCOLOUR15(colour, pc);
849 SPLITCOLOUR16(colour, pc);
853 SPLITCOLOUR24(colour, pc);
1600 /* Given a mask of a colour channel (e.g. XVisualInfo.red_mask),
1601 calculates the bits-per-pixel of this channel (a.k.a. colour weight).
1713 /* Prefer formats which have the most colour depth.
1876 DEBUG(("Performance optimization possible: avoiding image translation (colour depth conversion).\n"));
1881 warning("Remote desktop colour depth %d higher than display colour depth %d.\n",
1894 warning("Display colour depth is %d bit: you may want to use -C for a private colourmap.\n", g_depth);
2890 /* should use colour map */
3040 uint32 colour;
3093 colour = xentry.pixel;
3104 map[i] = colour;
3364 SET_FOREGROUND(pen->colour);
3377 /* brush */ int colour)
3379 SET_FOREGROUND(colour);
3488 SET_FOREGROUND(pen->colour);