Finishing basic status bar handling

This commit is contained in:
Zoe Roux
2022-02-05 23:54:13 +01:00
parent e2119fbe3a
commit 923c8302fa
6 changed files with 20 additions and 35 deletions
+1 -13
View File
@@ -4,24 +4,12 @@ width_status2d(Bar *bar, BarWidthArg *a)
return status2dtextlength(rawstext) + lrpad;
}
int
width_status2d_es(Bar *bar, BarWidthArg *a)
{
return status2dtextlength(rawestext);
}
int
draw_status2d(Bar *bar, BarDrawArg *a)
{
return drawstatusbar(a->x, rawstext);
}
int
draw_status2d_es(Bar *bar, BarDrawArg *a)
{
return drawstatusbar(a->x, rawestext);
}
int
drawstatusbar(int x, char* stext)
{
@@ -168,4 +156,4 @@ status2dtextlength(char* stext)
w += TEXTW(text) - lrpad;
free(p);
return w;
}
}