[gimp/metadata-browser] app: use gimp_cairo_set_source_rgb() wheh setting a GimpRGB
- From: Roman Joost <romanofski src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gimp/metadata-browser] app: use gimp_cairo_set_source_rgb() wheh setting a GimpRGB
- Date: Wed, 12 Sep 2012 22:55:55 +0000 (UTC)
commit 3d9fa86972bfdad2cc8b4baffb7674fc4474856b
Author: Michael Natterer <mitch gimp org>
Date: Mon Mar 5 19:19:47 2012 +0100
app: use gimp_cairo_set_source_rgb() wheh setting a GimpRGB
app/display/gimpdisplayshell-style.c | 15 +++------------
1 files changed, 3 insertions(+), 12 deletions(-)
---
diff --git a/app/display/gimpdisplayshell-style.c b/app/display/gimpdisplayshell-style.c
index 56a263a..e2d0c4c 100644
--- a/app/display/gimpdisplayshell-style.c
+++ b/app/display/gimpdisplayshell-style.c
@@ -115,15 +115,9 @@ gimp_display_shell_set_sample_point_style (GimpDisplayShell *shell,
cairo_set_line_width (cr, 1.0);
if (active)
- cairo_set_source_rgb (cr,
- sample_point_active.r,
- sample_point_active.g,
- sample_point_active.b);
+ gimp_cairo_set_source_rgb (cr, &sample_point_active);
else
- cairo_set_source_rgb (cr,
- sample_point_normal.r,
- sample_point_normal.g,
- sample_point_normal.b);
+ gimp_cairo_set_source_rgb (cr, &sample_point_normal);
}
void
@@ -165,10 +159,7 @@ gimp_display_shell_set_grid_style (GimpDisplayShell *shell,
case GIMP_GRID_DOTS:
case GIMP_GRID_INTERSECTIONS:
case GIMP_GRID_SOLID:
- cairo_set_source_rgb (cr,
- grid->fgcolor.r,
- grid->fgcolor.g,
- grid->fgcolor.b);
+ gimp_cairo_set_source_rgb (cr, &grid->fgcolor);
break;
}
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]