compute textlen also
This commit is contained in:
parent
3ec0618472
commit
e77fe9c2a0
2
draw.c
2
draw.c
|
@ -261,7 +261,7 @@ textwidth_primitive(Display *display, XftFont *font, char *text)
|
||||||
unsigned short
|
unsigned short
|
||||||
textwidth(DrawCtx *ctx, XftFont *font, char *text)
|
textwidth(DrawCtx *ctx, XftFont *font, char *text)
|
||||||
{
|
{
|
||||||
if (!text)
|
if (!a_strlen(text))
|
||||||
return 0;
|
return 0;
|
||||||
return textwidth_primitive(ctx->display, font, text);
|
return textwidth_primitive(ctx->display, font, text);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue