Flawed logic is flawed.
This commit is contained in:
parent
cb7597052b
commit
11e5e2e859
2
bar.c
2
bar.c
|
@ -26,7 +26,7 @@ draw (int x, int align, int fgcol, int bgcol, char *text)
|
||||||
int len = MIN(bw / ft_width, strlen (text));
|
int len = MIN(bw / ft_width, strlen (text));
|
||||||
int strw = len * ft_width;
|
int strw = len * ft_width;
|
||||||
|
|
||||||
if (!strw) return x;
|
if (!strw) return 0;
|
||||||
|
|
||||||
switch (align) {
|
switch (align) {
|
||||||
case 1:
|
case 1:
|
||||||
|
|
Loading…
Reference in New Issue
Block a user