From 7ce443fd426ab6f8be01212706572d7d2094ff1b Mon Sep 17 00:00:00 2001 From: GetAway Date: Fri, 25 Nov 2016 08:22:38 +0100 Subject: [PATCH] fix cut string in showMessage() --- shellexec.c | 2 +- text.c | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) 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) -- 2.39.5