From c3a13cc6cf0c30cd80051379b1bc6cabd49cd592 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Kristian=20H=C3=B8gsberg?= Date: Sat, 9 Jun 2012 08:46:51 -0400 Subject: [PATCH] tests: Use weston_surface_to_global_float Forgot to update use of weston_surface_to_global() here. --- tests/surface-test.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/tests/surface-test.c b/tests/surface-test.c index f5e5a99..e8fcb9e 100644 --- a/tests/surface-test.c +++ b/tests/surface-test.c @@ -30,19 +30,19 @@ TEST(surface_transform) { struct weston_surface *surface; - int32_t x, y; + GLfloat x, y; surface = weston_surface_create(compositor); weston_surface_configure(surface, 100, 100, 200, 200); weston_surface_update_transform(surface); - weston_surface_to_global(surface, 20, 20, &x, &y); + weston_surface_to_global_float(surface, 20, 20, &x, &y); - fprintf(stderr, "20,20 maps to %d, %d\n", x, y); + fprintf(stderr, "20,20 maps to %f, %f\n", x, y); assert(x == 120 && y == 120); weston_surface_set_position(surface, 150, 300); weston_surface_update_transform(surface); - weston_surface_to_global(surface, 50, 40, &x, &y); + weston_surface_to_global_float(surface, 50, 40, &x, &y); assert(x == 200 && y == 340); wl_display_terminate(compositor->wl_display); -- 2.7.4