Mercurial > MadButterfly
changeset 436:c02d2aa2c45e
Fig the bug that sh_stext can not show text with right color.
It is caused by sh_stext draw text directly into surface. It should create
a path instead of draw directly, since rdman would draw the path
with right color, stroke, and opacity.
author | Thinker K.F. Li <thinker@branda.to> |
---|---|
date | Thu, 30 Jul 2009 12:11:27 +0800 |
parents | 2bdd4f5dd2ca |
children | e73b3644d802 |
files | src/shape_stext.c |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/src/shape_stext.c Wed Jul 29 20:22:36 2009 +0800 +++ b/src/shape_stext.c Thu Jul 30 12:11:27 2009 +0800 @@ -314,7 +314,7 @@ cairo_set_scaled_font(cr, (cairo_scaled_font_t *)scaled); cairo_move_to(cr, x, y); - cairo_show_text(cr, buf); + cairo_text_path(cr, buf); cairo_set_scaled_font(cr, saved_scaled); cairo_scaled_font_destroy(saved_scaled);