From 02af0270cf5283e38107763977bc552bbb03cf26 Mon Sep 17 00:00:00 2001 From: GetAway Date: Tue, 29 Nov 2016 13:30:36 +0100 Subject: [PATCH] fix message alignment --- msgbox.c | 2 +- text.c | 5 ++++- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/msgbox.c b/msgbox.c index 26a839a..674f1a0 100644 --- a/msgbox.c +++ b/msgbox.c @@ -10,7 +10,7 @@ #include "gfx.h" #include "txtform.h" -#define M_VERSION 1.22 +#define M_VERSION 1.23 #define NCF_FILE "/var/tuxbox/config/neutrino.conf" #define HDF_FILE "/tmp/.msgbox_hidden" diff --git a/text.c b/text.c index e8846c8..c0f9594 100644 --- a/text.c +++ b/text.c @@ -328,7 +328,10 @@ int GetStringLen(int _sx, char *string, size_t size) string+=5; stringlen=i-_sx; } - else if(*string=='R' || + else if(*string=='l' || + *string=='c' || + *string=='r' || + *string=='R' || *string=='G' || *string=='B' || *string=='Y' || -- 2.39.5