]> git.webhop.me Git - shellexec.git/commitdiff
fix cut string in showMessage()
authorGetAway <get-away@t-online.de>
Fri, 25 Nov 2016 07:22:38 +0000 (08:22 +0100)
committersvenhoefer <svenhoefer@svenhoefer.com>
Fri, 25 Nov 2016 08:24:45 +0000 (09:24 +0100)
shellexec.c
text.c

index 73383e0b1a034d2389d8528e3c5a47080c7fb1c5..a194f84eabaf16b683b4e0f1e67ffd51657531e9 100644 (file)
@@ -8,7 +8,7 @@
 #include "io.h"
 #include "gfx.h"
 
-#define SH_VERSION 1.32
+#define SH_VERSION 1.33
 
 static char CFG_FILE[128]="/var/tuxbox/config/shellexec.conf";
 
diff --git a/text.c b/text.c
index 18aaf493c94abe276ac2a7ec6f29737c7276f4b6..f216ffacf6c116a68db2996a17a7e05c50aa1b99 100644 (file)
--- a/text.c
+++ b/text.c
@@ -485,7 +485,7 @@ char *rmptr, *rmstr, *rmdptr;
 void ShowMessage(char *mtitle, char *message, int wait)
 {
        extern int radius;
-       int ixw=400;
+       int ixw=420;
        int lx=startx;
        //int ly=starty;
        char *tdptr;
@@ -501,11 +501,11 @@ void ShowMessage(char *mtitle, char *message, int wait)
        //message
        tdptr=strdup(mtitle);
        remove_tabs(tdptr);
-       RenderString(tdptr, 2, 213, ixw, CENTER, FSIZE_BIG, CMHT);
+       RenderString(tdptr, 2, 213, ixw-10, CENTER, FSIZE_BIG, CMHT);
        free(tdptr);
        tdptr=strdup(message);
        remove_tabs(tdptr);
-       RenderString(tdptr, 2, 270, ixw, CENTER, FSIZE_MED, CMCT);
+       RenderString(tdptr, 2, 270, ixw-10, CENTER, FSIZE_MED, CMCT);
        free(tdptr);
 
        if(wait)