From f90c39072a3c14e8a990a08e89bd55bed7d419db Mon Sep 17 00:00:00 2001 From: GetAway Date: Fri, 25 Nov 2016 08:39:43 +0100 Subject: [PATCH] fix RC-handling in showMessage() --- shellexec.c | 2 +- text.c | 5 ++--- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/shellexec.c b/shellexec.c index a194f84..3e62d9c 100644 --- a/shellexec.c +++ b/shellexec.c @@ -8,7 +8,7 @@ #include "io.h" #include "gfx.h" -#define SH_VERSION 1.33 +#define SH_VERSION 1.34 static char CFG_FILE[128]="/var/tuxbox/config/shellexec.conf"; diff --git a/text.c b/text.c index f216ffa..a8c0360 100644 --- a/text.c +++ b/text.c @@ -511,12 +511,11 @@ void ShowMessage(char *mtitle, char *message, int wait) if(wait) { RenderBox(ixw/2-25, 286, ixw/2+25, 310, radius, CMCS); - RenderString("OK", ixw/2-25, 305, 50, CENTER, FSIZE_MED, CMCT); + RenderString("OK", ixw/2-25, 312, 50, CENTER, FSIZE_MED, CMCT); } memcpy(lfb, lbb, var_screeninfo.xres*var_screeninfo.yres*sizeof(uint32_t)); - //blit(); - while(wait && (GetRCCode(-1) != RC_OK)); + while(wait && (GetRCCode(300) != RC_OK)); startx=lx; //starty=ly; -- 2.39.5