Mercurial > molko
comparison libui/ui/button.c @ 168:aab824406d3d
misc: all printf-like function are name foof and vfoof
author | David Demelier <markand@malikania.fr> |
---|---|
date | Tue, 20 Oct 2020 15:09:39 +0200 |
parents | 31d7f23c0588 |
children | 6992085d47fd |
comparison
equal
deleted
inserted
replaced
167:b9b826cd9832 | 168:aab824406d3d |
---|---|
67 unsigned int lw, lh; | 67 unsigned int lw, lh; |
68 | 68 |
69 label_query(&label, &lw, &lh); | 69 label_query(&label, &lw, &lh); |
70 | 70 |
71 if (lw > button->w) | 71 if (lw > button->w) |
72 trace("button is too small for text: %u < %u", button->w, lw); | 72 tracef("button is too small for text: %u < %u", button->w, lw); |
73 if (lh > button->h) | 73 if (lh > button->h) |
74 trace("button is too small for text: %u < %u", button->h, lh); | 74 tracef("button is too small for text: %u < %u", button->h, lh); |
75 | 75 |
76 align(ALIGN_CENTER, &label.x, &label.y, lw, lh, | 76 align(ALIGN_CENTER, &label.x, &label.y, lw, lh, |
77 button->x, button->y, button->w, button->h); | 77 button->x, button->y, button->w, button->h); |
78 | 78 |
79 painter_set_color(0x577277ff); | 79 painter_set_color(0x577277ff); |