作図ソフト dia の改良版
修訂 | 9e26cca4f91aa8e8ad99b3091a09e863d27fd182 (tree) |
---|---|
時間 | 2014-06-08 17:58:25 |
作者 | Hans Breuer <hans@breu...> |
Commiter | Hans Breuer |
Fix signature of DiaTransformRenderer::draw_polygon()
also the change the internal _polygon() calls color order
@@ -212,7 +212,7 @@ draw_line(DiaRenderer *self, | ||
212 | 212 | static void |
213 | 213 | _polyline(DiaRenderer *self, |
214 | 214 | Point *points, int num_points, |
215 | - Color *stroke, Color *fill, | |
215 | + Color *fill, Color *stroke, | |
216 | 216 | gboolean closed) |
217 | 217 | { |
218 | 218 | Point *a_pts = g_newa (Point, num_points); |
@@ -237,9 +237,9 @@ _polyline(DiaRenderer *self, | ||
237 | 237 | static void |
238 | 238 | draw_polyline(DiaRenderer *self, |
239 | 239 | Point *points, int num_points, |
240 | - Color *line_colour) | |
240 | + Color *stroke) | |
241 | 241 | { |
242 | - _polyline (self, points, num_points, line_colour, NULL, FALSE); | |
242 | + _polyline (self, points, num_points, NULL, stroke, FALSE); | |
243 | 243 | } |
244 | 244 | /*! |
245 | 245 | * \brief Transform polygon and delegate draw |
@@ -248,9 +248,9 @@ draw_polyline(DiaRenderer *self, | ||
248 | 248 | static void |
249 | 249 | draw_polygon(DiaRenderer *self, |
250 | 250 | Point *points, int num_points, |
251 | - Color *line_colour) | |
251 | + Color *fill, Color *stroke) | |
252 | 252 | { |
253 | - _polyline (self, points, num_points, line_colour, NULL, TRUE); | |
253 | + _polyline (self, points, num_points, fill, stroke, TRUE); | |
254 | 254 | } |
255 | 255 | /* ToDo: arc and ellipse to be emulated by bezier - in base class? */ |
256 | 256 | static void |