Mercurial > MadButterfly
comparison src/graph_engine_cairo.c @ 586:b42d69ab8857 openvg
Replace mbe_clip() with mbe_scissoring()
author | Thinker K.F. Li <thinker@branda.to> |
---|---|
date | Wed, 30 Jun 2010 13:28:53 +0800 |
parents | e813ac222f48 |
children | ac2e6468a22a |
comparison
equal
deleted
inserted
replaced
585:6af1aa74e57c | 586:b42d69ab8857 |
---|---|
150 stop++; | 150 stop++; |
151 } | 151 } |
152 | 152 |
153 return ptn; | 153 return ptn; |
154 } | 154 } |
155 | |
156 void | |
157 mbe_scissoring(mbe_t *canvas, int n_areas, area_t **areas) { | |
158 area_t *area; | |
159 int i; | |
160 | |
161 cairo_new_path(canvas); | |
162 | |
163 for(i = 0; i < n_areas; i++) { | |
164 area = areas[i]; | |
165 cairo_rectangle(canvas, area->x, area->y, area->w, area->h); | |
166 } | |
167 | |
168 cairo_clip(canvas); | |
169 } |