diff options
| author | Dana Jansens <danakj@orodu.net> | 2003-06-21 01:56:14 +0000 |
|---|---|---|
| committer | Dana Jansens <danakj@orodu.net> | 2003-06-21 01:56:14 +0000 |
| commit | bd59576748db274c1a5e6ffece5df51d7d700b23 (patch) | |
| tree | 2dbc228297bdb87af7cfdfa172145cc72caa728c /render/color.c | |
| parent | b1f5555218ecaa3827450125dc47b4bf0d404ee4 (diff) | |
rename color_rgb to RrColor
Diffstat (limited to 'render/color.c')
| -rw-r--r-- | render/color.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/render/color.c b/render/color.c index 145550f3..345736a3 100644 --- a/render/color.c +++ b/render/color.c @@ -7,7 +7,7 @@ XColor *pseudo_colors; int pseudo_bpc; -void color_allocate_gc(color_rgb *in) +void color_allocate_gc(RrColor *in) { XGCValues gcv; @@ -18,7 +18,7 @@ void color_allocate_gc(color_rgb *in) GCForeground | GCCapStyle, &gcv); } -color_rgb *RrColorParse(const RrInstance *inst, gchar *colorname) +RrColor *RrColorParse(const RrInstance *inst, gchar *colorname) { XColor xcol; @@ -36,16 +36,16 @@ color_rgb *RrColorParse(const RrInstance *inst, gchar *colorname) return RrColorNew(inst, xcol.red >> 8, xcol.green >> 8, xcol.blue >> 8); } -color_rgb *RrColorNew(const RrInstance *inst, gint r, gint g, gint b) +RrColor *RrColorNew(const RrInstance *inst, gint r, gint g, gint b) { /* this should be replaced with something far cooler */ - color_rgb *out = NULL; + RrColor *out = NULL; XColor xcol; xcol.red = (r << 8) | r; xcol.green = (g << 8) | g; xcol.blue = (b << 8) | b; if (XAllocColor(RrDisplay(inst), RrColormap(inst), &xcol)) { - out = g_new(color_rgb, 1); + out = g_new(RrColor, 1); out->inst = inst; out->r = xcol.red >> 8; out->g = xcol.green >> 8; @@ -58,7 +58,7 @@ color_rgb *RrColorNew(const RrInstance *inst, gint r, gint g, gint b) /*XXX same color could be pointed to twice, this might have to be a refcount*/ -void RrColorFree(color_rgb *c) +void RrColorFree(RrColor *c) { if (c) { if (c->gc) XFreeGC(RrDisplay(c->inst), c->gc); |
