summaryrefslogtreecommitdiff
path: root/tests/surface-test.c
diff options
context:
space:
mode:
authorJason Ekstrand <jason@jlekstrand.net>2013-12-02 21:01:53 -0600
committerKristian Høgsberg <krh@bitplanet.net>2013-12-02 22:17:58 -0800
commit918f2dd4cfb8b177f67b45653efbbe4325cbe9dc (patch)
tree3bd3635fc459c545c5ee34adba64656c9bf743d5 /tests/surface-test.c
parentfdca95c7db067132b5670cbaa56c4088c2be3f1f (diff)
downloadweston-918f2dd4cfb8b177f67b45653efbbe4325cbe9dc.tar.gz
weston-918f2dd4cfb8b177f67b45653efbbe4325cbe9dc.tar.bz2
weston-918f2dd4cfb8b177f67b45653efbbe4325cbe9dc.zip
Remove the weston_view.geometry.width/height fields
This has a couple of additional implications for the internal weston API: 1) weston_view_configure no longer exists. Use weston_view_set_position instead. 2) The weston_surface.configure callback no longer takes a width and height. If you need these, surface.width/height are set before configure is called. If you need to know when the width/height changes, you must track that yourself.
Diffstat (limited to 'tests/surface-test.c')
-rw-r--r--tests/surface-test.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/tests/surface-test.c b/tests/surface-test.c
index 4a8b2b29..80dce81f 100644
--- a/tests/surface-test.c
+++ b/tests/surface-test.c
@@ -38,7 +38,9 @@ surface_transform(void *data)
assert(surface);
view = weston_view_create(surface);
assert(view);
- weston_view_configure(view, 100, 100, 200, 200);
+ surface->width = 200;
+ surface->height = 200;
+ weston_view_set_position(view, 100, 100);
weston_view_update_transform(view);
weston_view_to_global_float(view, 20, 20, &x, &y);