• R/O
  • HTTP
  • SSH
  • HTTPS

提交

標籤
無標籤

Frequently used words (click to add to your profile)

javac++androidlinuxc#windowsobjective-ccocoa誰得qtpythonphprubygameguibathyscaphec計画中(planning stage)翻訳omegatframeworktwitterdomtestvb.netdirectxゲームエンジンbtronarduinopreviewer

作図ソフト dia の改良版


Commit MetaInfo

修訂9e26cca4f91aa8e8ad99b3091a09e863d27fd182 (tree)
時間2014-06-08 17:58:25
作者Hans Breuer <hans@breu...>
CommiterHans Breuer

Log Message

Fix signature of DiaTransformRenderer::draw_polygon()

also the change the internal _polygon() calls color order

Change Summary

差異

--- a/lib/diatransformrenderer.c
+++ b/lib/diatransformrenderer.c
@@ -212,7 +212,7 @@ draw_line(DiaRenderer *self,
212212 static void
213213 _polyline(DiaRenderer *self,
214214 Point *points, int num_points,
215- Color *stroke, Color *fill,
215+ Color *fill, Color *stroke,
216216 gboolean closed)
217217 {
218218 Point *a_pts = g_newa (Point, num_points);
@@ -237,9 +237,9 @@ _polyline(DiaRenderer *self,
237237 static void
238238 draw_polyline(DiaRenderer *self,
239239 Point *points, int num_points,
240- Color *line_colour)
240+ Color *stroke)
241241 {
242- _polyline (self, points, num_points, line_colour, NULL, FALSE);
242+ _polyline (self, points, num_points, NULL, stroke, FALSE);
243243 }
244244 /*!
245245 * \brief Transform polygon and delegate draw
@@ -248,9 +248,9 @@ draw_polyline(DiaRenderer *self,
248248 static void
249249 draw_polygon(DiaRenderer *self,
250250 Point *points, int num_points,
251- Color *line_colour)
251+ Color *fill, Color *stroke)
252252 {
253- _polyline (self, points, num_points, line_colour, NULL, TRUE);
253+ _polyline (self, points, num_points, fill, stroke, TRUE);
254254 }
255255 /* ToDo: arc and ellipse to be emulated by bezier - in base class? */
256256 static void