summaryrefslogtreecommitdiff
path: root/displaymenu.c
diff options
context:
space:
mode:
authorkamel5 <vdr.kamel5 (at) gmx (dot) net>2019-08-29 14:48:09 +0200
committerkamel5 <vdr.kamel5 (at) gmx (dot) net>2020-03-24 15:18:53 +0100
commitc3fd79e041d20a221c5d6effb00cfc60d50dfd9e (patch)
tree482168726854459bcdf7a048ff143c28a0e973aa /displaymenu.c
parentd991048cfc487a5f01014f141a66d3cb92276c90 (diff)
downloadskin-lcarsng-c3fd79e041d20a221c5d6effb00cfc60d50dfd9e.tar.gz
skin-lcarsng-c3fd79e041d20a221c5d6effb00cfc60d50dfd9e.tar.bz2
Add margin
Diffstat (limited to 'displaymenu.c')
-rw-r--r--displaymenu.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/displaymenu.c b/displaymenu.c
index 5f0923a..fabedd2 100644
--- a/displaymenu.c
+++ b/displaymenu.c
@@ -9,6 +9,7 @@
#include "lcarsng.h"
#include "displaymenu.h"
+#include "config.h"
#include <vdr/font.h>
#include <vdr/menu.h>
#include <vdr/osd.h>
@@ -58,6 +59,7 @@ cLCARSNGDisplayMenu::cLCARSNGDisplayMenu(void)
frameColorBg = Theme.Color(clrMenuFrameBg);
frameColorMg = Theme.Color(clrMenuFrameMg);
currentIndex = -1;
+ Margin = Config.Margin;
// The outer frame:
int d = 5 * lineHeight;
xa00 = 0;
@@ -72,7 +74,7 @@ cLCARSNGDisplayMenu::cLCARSNGDisplayMenu(void)
xa07 = xa08 - Gap;
yt00 = 0;
- yt01 = yt00 + lineHeight + Margin;
+ yt01 = yt00 + lineHeight + 2* Margin;
yt02 = yt01 + lineHeight + Margin;
yt03 = yt01 + d / 4;
yt04 = yt02 + Gap;
@@ -113,7 +115,7 @@ cLCARSNGDisplayMenu::cLCARSNGDisplayMenu(void)
yb082 = yb081 + Gap;
yb15 = cOsd::OsdHeight();
- yb14 = yb15 - lineHeight - Margin;
+ yb14 = yb15 - lineHeight - 2 * Margin;
yb13 = yb14 - lineHeight - Margin;
yb12 = yb14 - d / 4;
yb11 = yb15 - d / 2;