diff options
author | Tim-Philipp Müller <tim@centricular.net> | 2021-06-28 14:17:58 +0000 |
---|---|---|
committer | Tim-Philipp Müller <tim@centricular.net> | 2021-06-28 14:17:58 +0000 |
commit | 2bd2d655062d58e28b04e807bfd5b735e3bd675b (patch) | |
tree | ba9da662f7eacfc9f2007b1500bfd4990a3178a0 | |
parent | 249615a89cc1594e7c16b5cc5004f63ca9eb36b6 (diff) | |
parent | cadbb32a92b8ed30ff9557e88235a75ec2305a01 (diff) | |
download | pango-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.c | 6 |
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 |