]> git.webhop.me Git - msgbox.git/commitdiff
fix message alignment
authorGetAway <get-away@t-online.de>
Tue, 29 Nov 2016 12:30:36 +0000 (13:30 +0100)
committersvenhoefer <svenhoefer@svenhoefer.com>
Wed, 30 Nov 2016 08:14:08 +0000 (09:14 +0100)
msgbox.c
text.c

index 26a839ade01f20299d7aa3e8067041ecb708028c..674f1a0b294786c8ab649bef4543be53e13b637a 100644 (file)
--- 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 e8846c8f04d9a51aab8f02b2f33c4a0500f08861..c0f95942216b20e918705d88fb89b275795cfe20 100644 (file)
--- 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' ||