]> git.webhop.me Git - shellexec.git/commitdiff
- shellexec: align separation lines to neutrino menu style
authorsvenhoefer <svenhoefer@svenhoefer.com>
Sun, 18 Sep 2016 22:22:38 +0000 (00:22 +0200)
committersvenhoefer <svenhoefer@svenhoefer.com>
Sun, 18 Sep 2016 22:22:38 +0000 (00:22 +0200)
shellexec.c

index 7d57bc55de6c7c8cfea33138f67deb0d59a391f7..9227c9aef731389d2a7b4ff151f4a454f259f674 100644 (file)
@@ -1424,19 +1424,13 @@ static void ShowInfo(MENU *m, int knew )
                                        cloffs=-dy/4;
                                }
                        }
+                       RenderBox(xoffs, my+soffs-cloffs, ixw-xoffs-sbw, my+soffs-cloffs+2, 0, COL_MENUCONTENT_PLUS_3);
                        if(ccenter)
                        {
-                               RenderBox(xoffs, my+soffs-cloffs+2, ixw-10-sbw, my+soffs-cloffs+3, 0, CMS);
-                               RenderBox(xoffs, my+soffs-cloffs+1, ixw-10-sbw, my+soffs-cloffs+2, 0, CMCIT);
                                stlen=GetStringLen(xoffs, dstr, MED);
                                RenderBox(xoffs+(ixw-xoffs-sbw)/2-stlen/2, my+soffs-ldy, xoffs+(ixw-xoffs-sbw)/2+stlen/2+15, my+soffs, FILL, CMC);
                                RenderString(dstr, xoffs, my, ixw-sbw, CENTER, MED, CMCIT);
                        }
-                       else
-                       {
-                               RenderBox(xoffs, my+soffs-cloffs+2, ixw-xoffs-sbw, my+soffs-cloffs+3, 0, CMS);
-                               RenderBox(xoffs, my+soffs-cloffs+1, ixw-xoffs-sbw, my+soffs-cloffs+2, 0, CMCIT);
-                       }
                }
                if((pl->type!=TYP_COMMENT) && ((pl->type!=TYP_INACTIVE) || (pl->showalways==2)))
                {