• 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

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

Log Message

Fix DiaCairoRenderer::draw_rounded_rect() to use fill color

Change Summary

差異

--- a/plug-ins/cairo/diacairo-renderer.c
+++ b/plug-ins/cairo/diacairo-renderer.c
@@ -1083,13 +1083,16 @@ draw_rounded_rect (DiaRenderer *self,
10831083 cairo_new_path (renderer->cr);
10841084 cairo_move_to (renderer->cr, ul_corner->x + radius, ul_corner->y);
10851085 renderer->stroke_pending = TRUE;
1086+ /* only stroke, no fill gives us the contour */
10861087 DIA_RENDERER_CLASS(parent_class)->draw_rounded_rect(self,
10871088 ul_corner, lr_corner,
1088- NULL, fill, radius);
1089+ NULL, stroke ? stroke : fill, radius);
10891090 renderer->stroke_pending = FALSE;
10901091 cairo_close_path (renderer->cr);
1091- if (fill) /* if a stroke follows preserve the path */
1092+ if (fill) { /* if a stroke follows preserve the path */
1093+ cairo_set_source_rgba (renderer->cr, fill->red, fill->green, fill->blue, fill->alpha);
10921094 _dia_cairo_fill (renderer, stroke ? TRUE : FALSE);
1095+ }
10931096 if (stroke) {
10941097 cairo_set_source_rgba (renderer->cr, stroke->red, stroke->green, stroke->blue, stroke->alpha);
10951098 cairo_stroke (renderer->cr);