diff options
Diffstat (limited to 'src/widget/widget_label.c')
| -rw-r--r-- | src/widget/widget_label.c | 19 |
1 files changed, 9 insertions, 10 deletions
diff --git a/src/widget/widget_label.c b/src/widget/widget_label.c index d4bb813..e3c907c 100644 --- a/src/widget/widget_label.c +++ b/src/widget/widget_label.c @@ -30,16 +30,15 @@ void drawWidgetLabel(widget_t * widget) p = (widget_label_t *) widget->private_data; switch (p->bind) { - case WIDGET_LABEL_RIGHT: - drawFont(p->text, widget->x + p->w, widget->y + p->h / 2, COLOR_WHITE); - break; - case WIDGET_LABEL_LEFT: - drawFont(p->text, widget->x, widget->y + widget->h / 2, COLOR_WHITE); - break; - case WIDGET_LABEL_CENTER: - drawFont(p->text, widget->x - p->w / 2, widget->y + p->h / 2, - COLOR_WHITE); - break; + case WIDGET_LABEL_RIGHT: + drawFont(p->text, widget->x + p->w, widget->y + p->h / 2, COLOR_WHITE); + break; + case WIDGET_LABEL_LEFT: + drawFont(p->text, widget->x, widget->y + widget->h / 2, COLOR_WHITE); + break; + case WIDGET_LABEL_CENTER: + drawFont(p->text, widget->x - p->w / 2, widget->y + p->h / 2, COLOR_WHITE); + break; } } |