[lasem] svg_view: fix order of matrix for pattern in object_bounding_box mode.
- From: Emmanuel Pacaud <emmanuel src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [lasem] svg_view: fix order of matrix for pattern in object_bounding_box mode.
- Date: Fri, 13 Aug 2010 11:19:22 +0000 (UTC)
commit ec31343ccddfb07e4e1a17f3f5d9290c91cf5584
Author: Emmanuel Pacaud <emmanuel gnome org>
Date: Fri Aug 13 13:18:23 2010 +0200
svg_view: fix order of matrix for pattern in object_bounding_box mode.
src/lsmsvgview.c | 5 +++--
1 files changed, 3 insertions(+), 2 deletions(-)
---
diff --git a/src/lsmsvgview.c b/src/lsmsvgview.c
index c4bdb13..b197997 100644
--- a/src/lsmsvgview.c
+++ b/src/lsmsvgview.c
@@ -794,14 +794,15 @@ _paint_url (LsmSvgView *view,
return;
}
- cairo_matrix_init_scale (&matrix,
+ matrix = view->pattern_data->matrix;
+
+ cairo_matrix_scale (&matrix,
1.0 / view->pattern_data->extents.width,
1.0 / view->pattern_data->extents.height);
cairo_matrix_translate (&matrix,
-view->pattern_data->extents.x,
-view->pattern_data->extents.y);
- cairo_matrix_multiply (&matrix, &view->pattern_data->matrix, &matrix);
cairo_pattern_set_matrix (view->pattern_data->pattern, &matrix);
} else
cairo_pattern_set_matrix (view->pattern_data->pattern, &view->pattern_data->matrix);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]