]> git.webhop.me Git - shellexec.git/commitdiff
small alignment - v2.11
authorGetAway <get-away@t-online.de>
Sun, 1 Oct 2017 11:29:19 +0000 (13:29 +0200)
committerJacek Jendrzej <satbaby@kawaii.com>
Sun, 1 Oct 2017 12:36:54 +0000 (14:36 +0200)
shellexec.c

index a7d6e4b42bc0b061ec22a28cce302b96bf99eea2..d16c769746e3e28912bc2297634555aa9043e5f7 100644 (file)
@@ -12,7 +12,7 @@
 #include "pngw.h"
 
 
-#define SH_VERSION 2.10
+#define SH_VERSION 2.11
 
 static char CFG_FILE[128]="/var/tuxbox/config/shellexec.conf";
 
@@ -1374,7 +1374,7 @@ static void ShowInfo(MENU *m, int knew )
                RenderBox(ixw-sbw + sbo, moffs + scrollbar_ofs + sbo, ixw - sbo, moffs + scrollbar_ofs + scrollbar_cor - sbo, radius, COL_MENUCONTENT_PLUS_3);
        }
        int iw,ih;
-       int offset, hoffs = (m->headermed[m->act_header]==1)?0:50;
+       int offset, hoffs = (m->headermed[m->act_header]==1)?0:scale2res(48);
        int ioffs = xoffs+8; // + half standard icon
        if(m->icon[m->act_header])
        {
@@ -1447,11 +1447,11 @@ static void ShowInfo(MENU *m, int knew )
                                        coffs=clh;
                                }
                        }
-                       RenderString(dstr, 50, my+soffs-(dy-font_size)/2-coffs+2, ixw-sbw-scale2res(65), LEFT, font_type, (((loop%MAX_FUNCS) == (tind%MAX_FUNCS)) && (sbar) && (!nosel))?CMCST:(nosel)?CMCIT:CMCT);
+                       RenderString(dstr, scale2res(48), my+soffs-(dy-font_size)/2-coffs+2, ixw-sbw-scale2res(65), LEFT, font_type, (((loop%MAX_FUNCS) == (tind%MAX_FUNCS)) && (sbar) && (!nosel))?CMCST:(nosel)?CMCIT:CMCT);
                }
                if(pl->type==TYP_MENU)
                {
-                       RenderString(">", 30, my+soffs-(dy-FSIZE_MED)/2+1, scale2res(65), LEFT, MED, (((loop%MAX_FUNCS) == (tind%MAX_FUNCS)) && (sbar) && (!nosel))?CMCST:CMCT);
+                       RenderString(">", scale2res(30), my+soffs-(dy-FSIZE_MED)/2+OFFSET_MIN, scale2res(65), LEFT, MED, (((loop%MAX_FUNCS) == (tind%MAX_FUNCS)) && (sbar) && (!nosel))?CMCST:CMCT);
                }
                if(pl->underline)
                {