diff options
| author | Xavier Del Campo Romero <xavi.dcr@tutanota.com> | 2022-07-02 00:50:26 +0200 |
|---|---|---|
| committer | Xavier Del Campo Romero <xavi.dcr@tutanota.com> | 2022-07-02 00:50:26 +0200 |
| commit | 04b9219ee53c76bdde29a0e899c6affac72c430d (patch) | |
| tree | 99837a21b7bd50b92199d5c213122f41e761bf12 /src/gui | |
| parent | 033ed5fb947d817da87dc11d95fc60b147791de1 (diff) | |
| download | rts-04b9219ee53c76bdde29a0e899c6affac72c430d.tar.gz | |
button.c: h/v-center child label by default
Diffstat (limited to 'src/gui')
| -rw-r--r-- | src/gui/src/button.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/gui/src/button.c b/src/gui/src/button.c index 580f36a..44aeac6 100644 --- a/src/gui/src/button.c +++ b/src/gui/src/button.c @@ -175,5 +175,7 @@ void gui_button_init(struct gui_button *const b) }; gui_label_init(&b->label); + b->label.common.hcentered = true; + b->label.common.vcentered = true; gui_add_child(&b->common, &b->label.common); } |
