summaryrefslogtreecommitdiff
path: root/textscreen/txt_separator.c
diff options
context:
space:
mode:
Diffstat (limited to 'textscreen/txt_separator.c')
-rw-r--r--textscreen/txt_separator.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/textscreen/txt_separator.c b/textscreen/txt_separator.c
index b430f831..2013edac 100644
--- a/textscreen/txt_separator.c
+++ b/textscreen/txt_separator.c
@@ -7,7 +7,7 @@
#include "txt_widget.h"
#include "txt_window.h"
-static int TXT_SeparatorSizeCalc(txt_widget_t *widget)
+static void TXT_SeparatorSizeCalc(txt_widget_t *widget, int *w, int *h)
{
txt_separator_t *separator = (txt_separator_t *) widget;
@@ -15,12 +15,14 @@ static int TXT_SeparatorSizeCalc(txt_widget_t *widget)
{
// Minimum width is the string length + two spaces for padding
- return strlen(separator->label) + 2;
+ *w = strlen(separator->label) + 2;
}
else
{
- return 0;
+ *w = 0;
}
+
+ *h = 1;
}
static void TXT_SeparatorDrawer(txt_widget_t *widget, int w, int selected)