mirror of
https://github.com/brl/mutter.git
synced 2024-12-25 04:22:05 +00:00
[tests] Test CoglFixed, not ClutterFixed
We really want to test the CoglFixed implementation, not the to-be-deprecated ClutterFixed one.
This commit is contained in:
parent
9911033505
commit
fc40d75956
@ -7,12 +7,12 @@ void
|
|||||||
test_fixed_constants (TestConformSimpleFixture *fixture,
|
test_fixed_constants (TestConformSimpleFixture *fixture,
|
||||||
gconstpointer data)
|
gconstpointer data)
|
||||||
{
|
{
|
||||||
g_assert_cmpint (CFX_ONE, ==, CLUTTER_FLOAT_TO_FIXED (1.0));
|
g_assert_cmpint (COGL_FIXED_1, ==, COGL_FIXED_FROM_FLOAT (1.0));
|
||||||
g_assert_cmpint (CFX_ONE, ==, CLUTTER_INT_TO_FIXED (1));
|
g_assert_cmpint (COGL_FIXED_1, ==, COGL_FIXED_FROM_INT (1));
|
||||||
|
|
||||||
g_assert_cmpint (CFX_HALF, ==, CLUTTER_FLOAT_TO_FIXED (0.5));
|
g_assert_cmpint (COGL_FIXED_0_5, ==, COGL_FIXED_FROM_FLOAT (0.5));
|
||||||
|
|
||||||
g_assert_cmpfloat (CLUTTER_FIXED_TO_FLOAT (CFX_ONE), ==, 1.0);
|
g_assert_cmpfloat (COGL_FIXED_TO_FLOAT (COGL_FIXED_1), ==, 1.0);
|
||||||
g_assert_cmpfloat (CLUTTER_FIXED_TO_FLOAT (CFX_HALF), ==, 0.5);
|
g_assert_cmpfloat (COGL_FIXED_TO_FLOAT (COGL_FIXED_0_5), ==, 0.5);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user