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

index a194f84eabaf16b683b4e0f1e67ffd51657531e9..3e62d9ca337a20abd751caf6268d315fcfa02c88 100644 (file)
@@ -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 f216ffacf6c116a68db2996a17a7e05c50aa1b99..a8c0360494aec5ac8866e47fae0fa7b8e30fddb7 100644 (file)
--- 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;