From c3fd79e041d20a221c5d6effb00cfc60d50dfd9e Mon Sep 17 00:00:00 2001 From: kamel5 Date: Thu, 29 Aug 2019 14:48:09 +0200 Subject: Add margin --- displaychannel.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'displaychannel.c') 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 #include #include @@ -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)); } } } -- cgit v1.2.3