Mercurial > MadButterfly
comparison src/shape_text.c @ 58:1ca417f741f1
-
author | Thinker K.F. Li <thinker@branda.to> |
---|---|
date | Sun, 10 Aug 2008 21:32:42 +0800 |
parents | d82749f77108 |
children | 9ab15ebc9061 |
comparison
equal
deleted
inserted
replaced
57:ab028c9f0930 | 58:1ca417f741f1 |
---|---|
107 x = text->x; | 107 x = text->x; |
108 y = text->y; | 108 y = text->y; |
109 coord_trans_pos(shape->coord, &x, &y); | 109 coord_trans_pos(shape->coord, &x, &y); |
110 r = get_extents(text, &extents); | 110 r = get_extents(text, &extents); |
111 if(r != OK) | 111 if(r != OK) |
112 /* TODO: announce error. change return type? */ | 112 /*! \todo announce error. change return type? */ |
113 return; | 113 return; |
114 | 114 |
115 text->d_x = x; | 115 text->d_x = x; |
116 text->d_y = y; | 116 text->d_y = y; |
117 shw = shape->stroke_width / 2; | 117 shw = shape->stroke_width / 2; |