diff options
author | Chris Wilson <chris@chris-wilson.co.uk> | 2007-11-04 11:55:25 +0000 |
---|---|---|
committer | Chris Wilson <chris@chris-wilson.co.uk> | 2007-11-05 08:51:06 +0000 |
commit | 901b0c97523a2da00ccf91cf4cee3bf55ce989b5 (patch) | |
tree | 16542921d7beafef312d5600d89b93be20ad4330 /src/cairo-path-fill.c | |
parent | 92a18464bae40b19a26402eb2aa4950cac04c3a0 (diff) | |
download | cairo-901b0c97523a2da00ccf91cf4cee3bf55ce989b5.tar.gz |
[cairo-path-fixed] Exponentially enlarge cairo_path_buf_t.
Allocate subsequent path bufs twice as large as the previous buf,
whilst still embedding a small initial buf into cairo_path_fixed_t
that handles the most frequent usage.
Diffstat (limited to 'src/cairo-path-fill.c')
-rw-r--r-- | src/cairo-path-fill.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/cairo-path-fill.c b/src/cairo-path-fill.c index 25420297f..f8e4ab023 100644 --- a/src/cairo-path-fill.c +++ b/src/cairo-path-fill.c @@ -214,7 +214,7 @@ static cairo_int_status_t _cairo_path_fixed_fill_rectangle (cairo_path_fixed_t *path, cairo_traps_t *traps) { - cairo_path_buf_t *buf = path->buf_head; + cairo_path_buf_t *buf = &path->buf_head.base; int final; /* Ensure the path has the operators we expect for a rectangular path. |