From b9f2604e5079882923abcd74ad13caf0e4b8faa2 Mon Sep 17 00:00:00 2001 From: monsta Date: Thu, 20 Oct 2016 14:30:39 +0300 Subject: tiff: use function from cairo >= 1.6 unconditionally no need for additional checks these days (and we actually already use the same function in another file) --- backend/tiff/tiff-document.c | 4 ---- 1 file changed, 4 deletions(-) (limited to 'backend/tiff/tiff-document.c') diff --git a/backend/tiff/tiff-document.c b/backend/tiff/tiff-document.c index 52c35d6e..0aa31cb6 100644 --- a/backend/tiff/tiff-document.c +++ b/backend/tiff/tiff-document.c @@ -261,11 +261,7 @@ tiff_document_render (EvDocument *document, return NULL; } -#ifdef HAVE_CAIRO_FORMAT_STRIDE_FOR_WIDTH rowstride = cairo_format_stride_for_width (CAIRO_FORMAT_RGB24, width); -#else - rowstride = width * 4; -#endif if (rowstride / 4 != width) { g_warning("Overflow while rendering document."); /* overflow, or cairo was changed in an unsupported way */ -- cgit v1.2.1