[dia] Fix signature of DiaTransformRenderer::draw_polygon()
- From: Hans Breuer <hans src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [dia] Fix signature of DiaTransformRenderer::draw_polygon()
- Date: Sun, 8 Jun 2014 09:00:48 +0000 (UTC)
commit 9e26cca4f91aa8e8ad99b3091a09e863d27fd182
Author: Hans Breuer <hans breuer org>
Date: Tue Jun 3 17:00:19 2014 +0200
Fix signature of DiaTransformRenderer::draw_polygon()
also the change the internal _polygon() calls color order
lib/diatransformrenderer.c | 10 +++++-----
1 files changed, 5 insertions(+), 5 deletions(-)
---
diff --git a/lib/diatransformrenderer.c b/lib/diatransformrenderer.c
index 7869d60..7898492 100644
--- a/lib/diatransformrenderer.c
+++ b/lib/diatransformrenderer.c
@@ -212,7 +212,7 @@ draw_line(DiaRenderer *self,
static void
_polyline(DiaRenderer *self,
Point *points, int num_points,
- Color *stroke, Color *fill,
+ Color *fill, Color *stroke,
gboolean closed)
{
Point *a_pts = g_newa (Point, num_points);
@@ -237,9 +237,9 @@ _polyline(DiaRenderer *self,
static void
draw_polyline(DiaRenderer *self,
Point *points, int num_points,
- Color *line_colour)
+ Color *stroke)
{
- _polyline (self, points, num_points, line_colour, NULL, FALSE);
+ _polyline (self, points, num_points, NULL, stroke, FALSE);
}
/*!
* \brief Transform polygon and delegate draw
@@ -248,9 +248,9 @@ draw_polyline(DiaRenderer *self,
static void
draw_polygon(DiaRenderer *self,
Point *points, int num_points,
- Color *line_colour)
+ Color *fill, Color *stroke)
{
- _polyline (self, points, num_points, line_colour, NULL, TRUE);
+ _polyline (self, points, num_points, fill, stroke, TRUE);
}
/* ToDo: arc and ellipse to be emulated by bezier - in base class? */
static void
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]