fix menu layout

- fix calculation of footer lines, menu pages and menu widths
- make sure, FONTH is never zero
- unify menu action execution
- clean up some code
This commit is contained in:
ac-stef
2017-04-19 15:39:45 +02:00
parent 682c3b7425
commit c2d64d3a2b
4 changed files with 52 additions and 58 deletions
+1
View File
@@ -13,6 +13,7 @@ VARP(allowblinkingtext, 0, 0, 1); // if you're so inclined
void newfont(char *name, char *tex, int *defaultw, int *defaulth, int *offsetx, int *offsety, int *offsetw, int *offseth)
{
if(*defaulth < 10) return; // (becomes FONTH)
font *f = fonts.access(name);
if(!f)
{