summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTim-Philipp Müller <tim@centricular.net>2021-06-28 14:17:58 +0000
committerTim-Philipp Müller <tim@centricular.net>2021-06-28 14:17:58 +0000
commit2bd2d655062d58e28b04e807bfd5b735e3bd675b (patch)
treeba9da662f7eacfc9f2007b1500bfd4990a3178a0
parent249615a89cc1594e7c16b5cc5004f63ca9eb36b6 (diff)
parentcadbb32a92b8ed30ff9557e88235a75ec2305a01 (diff)
downloadpango-2bd2d655062d58e28b04e807bfd5b735e3bd675b.tar.gz
Merge branch 'alatiera/msvc-tests' into 'master'
testmatrix.c: use G_SQRT2 insead of M_SQRT2 See merge request GNOME/pango!347
-rw-r--r--tests/testmatrix.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/testmatrix.c b/tests/testmatrix.c
index 403dece1..2c7b39a2 100644
--- a/tests/testmatrix.c
+++ b/tests/testmatrix.c
@@ -160,9 +160,9 @@ test_matrix_transform_rect (void)
pango_matrix_transform_rectangle (&m, &rect);
g_assert_cmpfloat_with_epsilon (rect.x, 0, 0.5);
- g_assert_cmpfloat_with_epsilon (rect.y, - M_SQRT2 / 2 * PANGO_SCALE, 0.5);
- g_assert_cmpfloat_with_epsilon (rect.width, M_SQRT2 * PANGO_SCALE, 0.5);
- g_assert_cmpfloat_with_epsilon (rect.height, M_SQRT2 * PANGO_SCALE, 0.5);
+ g_assert_cmpfloat_with_epsilon (rect.y, - G_SQRT2 / 2 * PANGO_SCALE, 0.5);
+ g_assert_cmpfloat_with_epsilon (rect.width, G_SQRT2 * PANGO_SCALE, 0.5);
+ g_assert_cmpfloat_with_epsilon (rect.height, G_SQRT2 * PANGO_SCALE, 0.5);
}
static void