diff options
author | Behdad Esfahbod <behdad@src.gnome.org> | 2006-08-16 07:28:30 +0000 |
---|---|---|
committer | Behdad Esfahbod <behdad@src.gnome.org> | 2006-08-16 07:28:30 +0000 |
commit | 46ff087263201f8c385d9ddc24176984ccca7f95 (patch) | |
tree | 1d9959c6191ceb7772562bb1175ab5272942a452 /examples | |
parent | bb26941a468b994331286a55d41447cc2ef9326f (diff) | |
download | pango-46ff087263201f8c385d9ddc24176984ccca7f95.tar.gz |
Minor adjustment.
Diffstat (limited to 'examples')
-rw-r--r-- | examples/viewer-pangocairo.c | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/examples/viewer-pangocairo.c b/examples/viewer-pangocairo.c index 8420f8cc..16c6d8bf 100644 --- a/examples/viewer-pangocairo.c +++ b/examples/viewer-pangocairo.c @@ -165,15 +165,19 @@ render_callback (PangoLayout *layout, pango_gravity_to_rotation ( pango_context_get_base_gravity ( pango_layout_get_context (layout)))); - cairo_move_to (cr, -1.0, -1.1); + cairo_move_to (cr, -1.0, -1.0); cairo_rel_line_to (cr, +1.0, -0.2); /* / */ cairo_rel_line_to (cr, +1.0, +0.2); /* \ */ cairo_close_path (cr); /* - */ - pattern = cairo_pattern_create_linear (0, -1.1, 0, -1.3); + pattern = cairo_pattern_create_linear (0, -1.0, 0, -1.2); cairo_pattern_add_color_stop_rgba (pattern, 0.0, 0.0, 0.0, 1.0, 0.0); cairo_pattern_add_color_stop_rgba (pattern, 1.0, 0.0, 0.0, 1.0, 0.15); cairo_set_source (cr, pattern); - cairo_fill_preserve (cr); + cairo_fill (cr); + /* once more, without close_path this time */ + cairo_move_to (cr, -1.0, -1.0); + cairo_rel_line_to (cr, +1.0, -0.2); /* / */ + cairo_rel_line_to (cr, +1.0, +0.2); /* \ */ /* silly line_width is not locked :(. get rid of scale. */ cairo_restore (cr); cairo_save (cr); |