summaryrefslogtreecommitdiff
path: root/test/a8-mask.c
diff options
context:
space:
mode:
authorCarl Worth <cworth@cworth.org>2008-01-28 14:29:36 -0800
committerCarl Worth <cworth@cworth.org>2008-01-28 15:39:39 -0800
commit13a5624277adf7e87f66d674ce8073013b53bece (patch)
tree9e2f2a1ea5a4783b4c67e04eed0a38d411f44232 /test/a8-mask.c
parentdc67de3d8b6154b74a243cd7b63e45f343520256 (diff)
downloadcairo-13a5624277adf7e87f66d674ce8073013b53bece.tar.gz
Rename cairo_image_surface_stride_for_width to cairo_format_stride_for_width
Thanks for Behdad for the suggested name improvement. Also, make it more clear that the stride passed to cairo_image_surface_create_for_data should come from calling cairo_format_stride_for_width with the same width.
Diffstat (limited to 'test/a8-mask.c')
-rw-r--r--test/a8-mask.c11
1 files changed, 6 insertions, 5 deletions
diff --git a/test/a8-mask.c b/test/a8-mask.c
index bdfb90a55..14d4f8f3f 100644
--- a/test/a8-mask.c
+++ b/test/a8-mask.c
@@ -20,7 +20,8 @@
* OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR
* IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*
- * Author: Jeff Muizelaar <jeff@infidigm.net>
+ * Authors: Jeff Muizelaar <jeff@infidigm.net>
+ * Carl Worth <cworth@cworth.org>
*/
#include "cairo-test.h"
@@ -106,8 +107,8 @@ draw (cairo_t *cr, int dst_width, int dst_height)
cairo_status_t expected;
for (test_width = 0; test_width < 40; test_width++) {
- stride = cairo_image_surface_stride_for_width (CAIRO_FORMAT_A8,
- test_width);
+ stride = cairo_format_stride_for_width (CAIRO_FORMAT_A8,
+ test_width);
/* First create a surface using the width as the stride, (most
* of these should fail). */
@@ -131,8 +132,8 @@ draw (cairo_t *cr, int dst_width, int dst_height)
/* Now test actually drawing through our mask data, allocating and
* copying with the proper stride. */
- stride = cairo_image_surface_stride_for_width (CAIRO_FORMAT_A8,
- MASK_WIDTH);
+ stride = cairo_format_stride_for_width (CAIRO_FORMAT_A8,
+ MASK_WIDTH);
mask_aligned = malloc (stride * MASK_HEIGHT);