From 2eb2c7af990f4ec3162c1f249bcf361bf17f6e8a Mon Sep 17 00:00:00 2001 From: Koen Kooi Date: Wed, 2 Jun 2010 09:34:03 +0200 Subject: cairo 1.8.10: add patch to get rid of some double precision FP math and convert to new style staging --- ...ss-on-DP-FPU-for-common-matrix-test-funcs.patch | 44 ++++++++++++++++++++++ 1 file changed, 44 insertions(+) create mode 100644 recipes/cairo/files/0001-Rely-less-on-DP-FPU-for-common-matrix-test-funcs.patch (limited to 'recipes/cairo/files') diff --git a/recipes/cairo/files/0001-Rely-less-on-DP-FPU-for-common-matrix-test-funcs.patch b/recipes/cairo/files/0001-Rely-less-on-DP-FPU-for-common-matrix-test-funcs.patch new file mode 100644 index 0000000000..4e9f1dbe60 --- /dev/null +++ b/recipes/cairo/files/0001-Rely-less-on-DP-FPU-for-common-matrix-test-funcs.patch @@ -0,0 +1,44 @@ +diff a/src/cairo-matrix.c b/src/cairo-matrix.c +--- a/src/cairo-matrix.c ++++ b/src/cairo-matrix.c +@@ -653,16 +653,39 @@ _cairo_matrix_compute_basis_scale_factors (const cairo_matrix_t *matrix, + cairo_bool_t + _cairo_matrix_is_identity (const cairo_matrix_t *matrix) + { ++ static const cairo_matrix_t id = { ++ .xx = 1, ++ .xy = 0, ++ .yx = 0, ++ .yy = 1, ++ .x0 = 0, ++ .y0 = 0 ++ }; ++ ++ return !memcmp(matrix, &id, sizeof(id)); ++ ++#if 0 + return (matrix->xx == 1.0 && matrix->yx == 0.0 && + matrix->xy == 0.0 && matrix->yy == 1.0 && + matrix->x0 == 0.0 && matrix->y0 == 0.0); ++#endif + } + + cairo_bool_t + _cairo_matrix_is_translation (const cairo_matrix_t *matrix) + { ++ cairo_matrix_t tmp; ++ tmp.xx = matrix->xx; ++ tmp.xy = matrix->xy; ++ tmp.yx = matrix->yx; ++ tmp.yy = matrix->yy; ++ tmp.x0 = tmp.y0 = 0; ++ return _cairo_matrix_is_identity(&tmp); ++ ++#if 0 + return (matrix->xx == 1.0 && matrix->yx == 0.0 && + matrix->xy == 0.0 && matrix->yy == 1.0); ++#endif + } + + cairo_bool_t + -- cgit 1.2.3-korg