From: GetAway Date: Fri, 25 Nov 2016 07:22:38 +0000 (+0100) Subject: fix cut string in showMessage() X-Git-Url: https://git.webhop.me/?a=commitdiff_plain;h=7ce443fd426ab6f8be01212706572d7d2094ff1b;p=shellexec.git fix cut string in showMessage() --- diff --git a/shellexec.c b/shellexec.c index 73383e0..a194f84 100644 --- a/shellexec.c +++ b/shellexec.c @@ -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 18aaf49..f216ffa 100644 --- 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)