-/*
- * The 16x16 icon is drawn with 1px shadow, 6x6 tiles, with 1 pixel cropped off
- * all the edge tiles
- */
-void ewmh_tile16(unsigned long *icon, const XColor *c, int tile_x, int tile_y)
-{
- int out_x, out_y, out_w, x, y;
- unsigned long row[6];
-
- out_x = tile_x * 11 / 2;
- out_y = tile_y * 11 / 2;
- out_w = (5 + (tile_x == 1)) * sizeof row[0];
-
- for (y = 0+(tile_y == 0); y < 6-(tile_y == 2); y++) {
- for (x = 0+(tile_x == 0); x < 6-(tile_x==2); x++) {
- if (x == 0 || y == 0)
- row[x] = wm_pixel(&c[COLOUR_LIGHT]);
- else if (x == 5 || y == 5)
- row[x] = wm_pixel(&c[COLOUR_DARK]);
- else
- row[x] = wm_pixel(&c[COLOUR_PRIMARY]);
- }
- memcpy(&icon[16 * out_y++ + out_x], &row[tile_x == 0], out_w);
- }
-}
+ t = (t << 8) + scale16to8(c->red);
+ t = (t << 8) + scale16to8(c->green);
+ t = (t << 8) + scale16to8(c->blue);