]> git.sur5r.net Git - i3/i3/blobdiff - libi3/draw_util.c
Parse colors as color_t instead of colorpixel.
[i3/i3] / libi3 / draw_util.c
index 816a81df2472a68b1ebfc397e6c0f1c8c2e3937b..4015ba92faf0270b2369f9c6f0cdbea0b74382ed 100644 (file)
@@ -99,14 +99,6 @@ color_t draw_util_hex_to_color(const char *color) {
         .colorpixel = get_colorpixel(color)};
 }
 
-color_t draw_util_colorpixel_to_color(uint32_t colorpixel) {
-    return (color_t){
-        .red = ((colorpixel >> 16) & 0xFF) / 255.0,
-        .green = ((colorpixel >> 8) & 0xFF) / 255.0,
-        .blue = (colorpixel & 0xFF) / 255.0,
-        .colorpixel = colorpixel};
-}
-
 /*
  * Set the given color as the source color on the surface.
  *