]> git.webhop.me Git - shellexec.git/commitdiff
- shellexec: fix header/scrollbar dimensions and positions
authorsvenhoefer <svenhoefer@svenhoefer.com>
Sun, 18 Sep 2016 21:52:57 +0000 (23:52 +0200)
committersvenhoefer <svenhoefer@svenhoefer.com>
Sun, 18 Sep 2016 21:52:57 +0000 (23:52 +0200)
shellexec.c

index 80e94fca6054b71b5d7bd7a2e03cf4db0e0ae7e5..7d57bc55de6c7c8cfea33138f67deb0d59a391f7 100644 (file)
@@ -1301,7 +1301,7 @@ static void ShowInfo(MENU *m, int knew )
        int dy, my, moffs, mh, toffs, soffs=4, oldx=startx, oldy=starty, sbar=0, nosel;
        PLISTENTRY pl;
 
-       moffs=iyw/(MAX_FUNCS+1);
+       moffs=iyw/(MAX_FUNCS+1)+5;
        mh=iyw-moffs;
        dy=mh/(MAX_FUNCS+1);
        toffs=dy/2;
@@ -1316,7 +1316,7 @@ static void ShowInfo(MENU *m, int knew )
        RenderBox(0, 0, ixw, iyw, radius, CMC);
 
        // titlebar
-       RenderBox(0, 0, ixw, moffs+5, radius, CMH);
+       RenderBox(0, 0, ixw, moffs, radius, CMH);
 
        for(loop=MAX_FUNCS*(index/MAX_FUNCS); loop<MAX_FUNCS*(index/MAX_FUNCS+1) && loop<m->num_entrys && !sbar; loop++)
        {