Mercurial > molko
diff examples/example-label.c @ 161:31d7f23c0588
ui: label no longer has w, h fields
author | David Demelier <markand@malikania.fr> |
---|---|
date | Sat, 17 Oct 2020 10:12:41 +0200 |
parents | c3a40062acc2 |
children | 133926e08d6e |
line wrap: on
line diff
--- a/examples/example-label.c Sat Oct 17 10:01:46 2020 +0200 +++ b/examples/example-label.c Sat Oct 17 10:12:41 2020 +0200 @@ -104,9 +104,10 @@ for (size_t i = 0; i < NELEM(table); ++i) { struct label *l = &table[i].label; + unsigned int w, h; - label_query(l); - align(table[i].align, &l->x, &l->y, l->w, l->h, 0, 0, W, H); + label_query(l, &w, &h); + align(table[i].align, &l->x, &l->y, w, h, 0, 0, W, H); } }