From 34cd65356f11fd7307d9d63c6d09c68a73e04669 Mon Sep 17 00:00:00 2001 From: David Herrmann Date: Mon, 26 Dec 2011 12:48:36 +0100 Subject: [PATCH] console: remove +1 font width This was to avoid rounding errors but seems to be useless now so remove it. Signed-off-by: David Herrmann --- src/console_char.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/console_char.c b/src/console_char.c index a2e25fb..8344541 100644 --- a/src/console_char.c +++ b/src/console_char.c @@ -480,7 +480,7 @@ static int measure_width(struct kmscon_font *font) if (!num) return -EFAULT; - font->width = width / num + 1; + font->width = width / num; log_debug("font: width is %u\n", font->width); return 0;