X-Git-Url: https://git.dogcows.com/gitweb?a=blobdiff_plain;f=render%2Fcolor.c;h=0cf7b226b2529d5fe4705ba455aa27199ce17130;hb=7d215bd255d0744101b9ceb52c235bdc985fa034;hp=83c2aa373f51e1e8ef58339f4c316c90975f67fe;hpb=f8a47de5ec444c452093371e3db16857eb39a490;p=chaz%2Fopenbox diff --git a/render/color.c b/render/color.c index 83c2aa37..0cf7b226 100644 --- a/render/color.c +++ b/render/color.c @@ -14,10 +14,11 @@ void color_allocate_gc(color_rgb *in) color_rgb *color_parse(char *colorname) { + XColor xcol; + g_assert(colorname != NULL); // get rgb values from colorname - XColor xcol; xcol.red = 0; xcol.green = 0; xcol.blue = 0; @@ -49,6 +50,8 @@ color_rgb *color_new(int r, int g, int b) return NULL; } +//XXX same color could be pointed to twice, this might have to be a refcount + void color_free(color_rgb *c) { if (c->gc != None)