From e3f52a81842f315e2ee54a25d98684ce584ce234 Mon Sep 17 00:00:00 2001 From: Tj Holowaychuk Date: Wed, 24 Nov 2010 17:17:19 -0800 Subject: [PATCH] Added cairo_format_stride_for_width() --- src/Image.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Image.cc b/src/Image.cc index d420ab3..96f0e34 100644 --- a/src/Image.cc +++ b/src/Image.cc @@ -319,7 +319,7 @@ Image::loadJPEG() { , CAIRO_FORMAT_ARGB32 , width , height - , width * 4); + , cairo_format_stride_for_width(CAIRO_FORMAT_ARGB32, width)); // Cleanup fclose(stream);