From: Kristian Høgsberg Date: Sat, 9 Jun 2012 12:46:51 +0000 (-0400) Subject: tests: Use weston_surface_to_global_float X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=c3a13cc6cf0c30cd80051379b1bc6cabd49cd592;p=profile%2Fivi%2Fweston-ivi-shell.git tests: Use weston_surface_to_global_float Forgot to update use of weston_surface_to_global() here. --- 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);