[goffice] Compilation: simply color handling.
- From: Morten Welinder <mortenw src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [goffice] Compilation: simply color handling.
- Date: Thu, 21 Mar 2013 23:23:46 +0000 (UTC)
commit b9e07241adbc09520b0f340497a5746c57923b9e
Author: Morten Welinder <terra gnome org>
Date: Thu Mar 21 19:23:27 2013 -0400
Compilation: simply color handling.
goffice/gtk/go-color-selector.c | 6 +-----
1 files changed, 1 insertions(+), 5 deletions(-)
---
diff --git a/goffice/gtk/go-color-selector.c b/goffice/gtk/go-color-selector.c
index e9b8b74..a7d0be7 100644
--- a/goffice/gtk/go-color-selector.c
+++ b/goffice/gtk/go-color-selector.c
@@ -141,11 +141,7 @@ go_color_palette_render_func (cairo_t *cr,
cairo_surface_destroy (check);
cairo_set_line_width (cr, 1);
- cairo_set_source_rgba (cr,
- GO_COLOR_DOUBLE_R(color),
- GO_COLOR_DOUBLE_G(color),
- GO_COLOR_DOUBLE_B(color),
- GO_COLOR_DOUBLE_A(color));
+ cairo_set_source_rgba (cr, GO_COLOR_TO_CAIRO (color));
cairo_rectangle (cr, area->x + .5 , area->y + .5 , area->width - 1, area->height - 1);
cairo_fill_preserve (cr);
cairo_set_source_rgb (cr, .75, .75, .75);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]