diff options
author | Chris Wilson <chris@chris-wilson.co.uk> | 2008-02-29 11:55:01 +0000 |
---|---|---|
committer | Chris Wilson <chris@chris-wilson.co.uk> | 2008-03-04 09:31:21 +0000 |
commit | 06b375aee999220ce294c22fa50a3040c19d5492 (patch) | |
tree | 42ad8d5ca769e69c6d154a7218613b9b710efcd4 /src/cairo-image-surface.c | |
parent | b181f40949a855c957dc6e7a1033981a2ed7d05a (diff) |
[cairo-png] Use cairo_format_stride_for_width()
Use cairo_format_stride_for_width() instead of assuming the pixel size
and manually calculating the row stride. This should make it easier to
support loading multiple image formats in future.
Diffstat (limited to 'src/cairo-image-surface.c')
-rw-r--r-- | src/cairo-image-surface.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/cairo-image-surface.c b/src/cairo-image-surface.c index 8247e444..28e3ce22 100644 --- a/src/cairo-image-surface.c +++ b/src/cairo-image-surface.c @@ -440,6 +440,7 @@ cairo_format_stride_for_width (cairo_format_t format, return ((bpp*width+7)/8 + STRIDE_ALIGNMENT-1) & ~(STRIDE_ALIGNMENT-1); } +slim_hidden_def (cairo_format_stride_for_width); /** * cairo_image_surface_create_for_data: |