From 2685676e118cd63380e6a12ce81ce5d4f0badc0a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A9r=C3=A9mie=20Courr=C3=A8ges-Anglas?= Date: Wed, 6 Feb 2013 19:03:07 +0100 Subject: rp_text_width: remove "font" argument * (globals.[ch]): remove rp_text_width "font" arg, since its value is always the global variable defaults.font (non-Xft case). remove one #ifdef while here * update rp_text_width() calls to match new signature --- src/split.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/split.c') diff --git a/src/split.c b/src/split.c index 480fca1..1a8bf8e 100644 --- a/src/split.c +++ b/src/split.c @@ -972,8 +972,8 @@ show_frame_message (char *msg) sbuf_concat (msgbuf, EMPTY_FRAME_MESSAGE); } - width = defaults.bar_x_padding * 2 + rp_text_width (s, defaults.font, msgbuf->data, - msgbuf->len); + width = defaults.bar_x_padding * 2 + + rp_text_width (s, msgbuf->data, msgbuf->len); height = (FONT_HEIGHT (s) + defaults.bar_y_padding * 2); /* We don't want another frame indicator to be displayed on another -- cgit v1.2.3