diff options
author | kamel5 <vdr.kamel5 (at) gmx (dot) net> | 2019-08-29 14:48:09 +0200 |
---|---|---|
committer | kamel5 <vdr.kamel5 (at) gmx (dot) net> | 2020-03-24 15:18:53 +0100 |
commit | c3fd79e041d20a221c5d6effb00cfc60d50dfd9e (patch) | |
tree | 482168726854459bcdf7a048ff143c28a0e973aa /displaychannel.c | |
parent | d991048cfc487a5f01014f141a66d3cb92276c90 (diff) | |
download | skin-lcarsng-c3fd79e041d20a221c5d6effb00cfc60d50dfd9e.tar.gz skin-lcarsng-c3fd79e041d20a221c5d6effb00cfc60d50dfd9e.tar.bz2 |
Add margin
Diffstat (limited to 'displaychannel.c')
-rw-r--r-- | displaychannel.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/displaychannel.c b/displaychannel.c index 2942a1f..8773614 100644 --- a/displaychannel.c +++ b/displaychannel.c @@ -9,6 +9,7 @@ #include "lcarsng.h" #include "displaychannel.h" +#include "config.h" #include <vdr/font.h> #include <vdr/menu.h> #include <vdr/osd.h> @@ -56,6 +57,7 @@ cLCARSNGDisplayChannel::cLCARSNGDisplayChannel(bool WithInfo):cThread("LCARS Dis message = false; lastOn = false; On = false; + Margin = Config.Margin; int d = 5 * lineHeight; int d1 = 3 * lineHeight; xc00 = 0; @@ -294,9 +296,9 @@ void cLCARSNGDisplayChannel::DrawEventRec(const cEvent *Present, const cEvent *F eTimerMatch TimerMatch = tmNone; const cTimer *Timer = Timers->GetMatch(e, &TimerMatch); if (Timer && Timer->HasFlags(tfActive) && TimerMatch == tmFull) - osd->DrawEllipse(xc10m + Gap, y + Gap, xc10n - Gap - 1, y + lineHeight - Gap - 1, recColor, 0); + osd->DrawEllipse(xc10m + Gap, y + Gap + Margin, xc10n - Gap - 1, y + lineHeight - Gap - 1, recColor, 0); else - osd->DrawRectangle(xc10m + Gap, y, xc10n - Gap - 1, y + lineHeight - 1, Theme.Color(clrBackground)); + osd->DrawRectangle(xc10m + Gap, y + Margin, xc10n - Gap - 1, y + lineHeight - 1, Theme.Color(clrBackground)); } } } |