[gnumeric] Compilation: simplify cairo color handling.
- From: Morten Welinder <mortenw src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnumeric] Compilation: simplify cairo color handling.
- Date: Sat, 23 Mar 2013 02:48:52 +0000 (UTC)
commit 44a9317ab54450ab463ef82e9d1e6a8a6a08f052
Author: Morten Welinder <terra gnome org>
Date: Fri Mar 22 22:48:26 2013 -0400
Compilation: simplify cairo color handling.
src/item-cursor.c | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
---
diff --git a/src/item-cursor.c b/src/item-cursor.c
index 582d007..36216da 100644
--- a/src/item-cursor.c
+++ b/src/item-cursor.c
@@ -316,7 +316,7 @@ item_cursor_draw (GocItem const *item, cairo_t *cr)
cairo_set_line_width (cr, 1.);
cairo_set_line_cap (cr, CAIRO_LINE_CAP_BUTT);
cairo_set_line_join (cr, CAIRO_LINE_JOIN_MITER);
- cairo_set_source_rgba (cr, gs_black.red, gs_black.green, gs_black.blue, gs_black.alpha);
+ gdk_cairo_set_source_rgba (cr, &gs_black);
if (draw_xor)
cairo_set_operator (cr, CAIRO_OPERATOR_HARD_LIGHT);
@@ -439,11 +439,11 @@ item_cursor_draw (GocItem const *item, cairo_t *cr)
double dashes[] = {4., 4.};
cairo_set_dash (cr, dashes, 2, 0.);
cairo_set_line_width (cr, draw_thick);
- cairo_set_source_rgba (cr, back->red, back->green, back->blue, back->alpha);
+ gdk_cairo_set_source_rgba (cr, back);
cairo_rectangle (cr, x0, y0, abs (x1 - x0), abs (y1 - y0));
cairo_stroke_preserve (cr);
cairo_set_dash (cr, dashes, 2, 4.);
- cairo_set_source_rgba (cr, fore->red, fore->green, fore->blue, fore->alpha);
+ gdk_cairo_set_source_rgba (cr, fore);
cairo_stroke (cr);
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]