From be618b6537f21ad608638067c2ac6606919e67a3 Mon Sep 17 00:00:00 2001 From: Frank Neumann Date: Fri, 26 May 2017 13:30:31 +0200 Subject: Make tab width configurable. --- render.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'render.c') diff --git a/render.c b/render.c index 2a73adb..309c4b6 100644 --- a/render.c +++ b/render.c @@ -5,6 +5,7 @@ #include "i18n.h" #include "theme.h" #include "bitmap.h" +#include "setup.h" #include "status.h" #include "screen.h" #include "display.h" @@ -336,7 +337,10 @@ void cText2SkinRender::DrawItemText(cxObject *Object, int i, const txPoint &List const cFont *defFont = cFont::GetFont(fontOsd); const char *dummy = "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789 "; //if (defFont != Object->Font()) - mTabScale = 1.4 * (float)Object->Font()->Width(dummy) / (float)defFont->Width(dummy); + if (Text2SkinSetup.TabWidth) + mTabScale = 1.4 * (float)Object->Font()->Width(dummy) / (float)defFont->Width(dummy); + else + mTabScale = 1.08 * (float)Object->Font()->Width(dummy) / (float)defFont->Width(dummy); mTabScaleSet = true; } -- cgit v1.2.3