comparison src/shape_text.c @ 33:d82749f77108

Fix bug of demo and remove *_fill() and *_stroke(). - logical error in X_main.c.
author Thinker K.F. Li <thinker@branda.to>
date Wed, 06 Aug 2008 00:40:04 +0800
parents da770188a44d
children 1ca417f741f1
comparison
equal deleted inserted replaced
32:69c8e264890d 33:d82749f77108
135 135
136 void sh_text_draw(shape_t *shape, cairo_t *cr) { 136 void sh_text_draw(shape_t *shape, cairo_t *cr) {
137 draw_text((sh_text_t *)shape, cr); 137 draw_text((sh_text_t *)shape, cr);
138 } 138 }
139 139
140 void sh_text_fill(shape_t *shape, cairo_t *cr) {
141 sh_text_t *text = (sh_text_t *)shape;
142
143 draw_text(text, cr);
144 cairo_fill(cr);
145 }
146
147
148 void sh_text_stroke(shape_t *shape, cairo_t *cr) {
149 sh_text_t *text = (sh_text_t *)shape;
150
151 draw_text(text, cr);
152 cairo_stroke(cr);
153 }