diff options
author | Kristian Høgsberg <krh@bitplanet.net> | 2012-06-09 08:46:51 -0400 |
---|---|---|
committer | Kristian Høgsberg <krh@bitplanet.net> | 2012-06-09 08:46:51 -0400 |
commit | c3a13cc6cf0c30cd80051379b1bc6cabd49cd592 (patch) | |
tree | f73bc27a489618159d2f535d5b668710e3f4db5c | |
parent | 70226bbda669b0542b222fd42de963eefddc9a7a (diff) |
tests: Use weston_surface_to_global_float
Forgot to update use of weston_surface_to_global() here.
-rw-r--r-- | tests/surface-test.c | 8 |
1 files 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); |