summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorkamel5 <vdr.kamel5 (at) gmx (dot) net>2020-10-20 12:50:33 +0200
committerkamel5 <vdr.kamel5 (at) gmx (dot) net>2020-10-24 14:04:57 +0200
commit41b30d2a1c3470808819e7d3dc5b2cc1e808a95f (patch)
tree574d3024e504d895d19fc4d7b103539c9a7b382d
parent8764b54ebf92bc65f6b784a77986c2436aa24c44 (diff)
downloadskin-lcarsng-41b30d2a1c3470808819e7d3dc5b2cc1e808a95f.tar.gz
skin-lcarsng-41b30d2a1c3470808819e7d3dc5b2cc1e808a95f.tar.bz2
Smal optimization
-rw-r--r--displaymenu.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/displaymenu.c b/displaymenu.c
index 8102d86..ab1cd0d 100644
--- a/displaymenu.c
+++ b/displaymenu.c
@@ -1057,7 +1057,6 @@ void cLCARSNGDisplayMenu::DrawLive(const cChannel *Channel)
lastMode = cmLive;
}
int w = tallFont->Width(tr("LIVE")) + 2 * Gap;
- int x1 = (viewmode == escaledvideo) ? xd07 : xd07 - w - lineHeight;
tColor ColorBg = (viewmode == escaledvideo) ? Theme.Color(clrBackground) : textColorBg;
if (initial) {
DrawMainFrameUpper(channelFrameColorBr, Theme.Color(clrChannelFrameBg));
@@ -1069,6 +1068,7 @@ void cLCARSNGDisplayMenu::DrawLive(const cChannel *Channel)
if (!Channel)
return;
if (initial || Channel != lastChannel || strcmp(Channel->Name(), lastChannelName)) {
+ int x1 = (viewmode == escaledvideo) ? xd07 : xd07 - w - lineHeight;
int y1 = zoom ? yt00 : yt04;
int y2 = zoom ? yt07 : yt09;
osd->DrawText(xa00 + Margin, y1 + Margin, itoa(Channel->Number()), Theme.Color(clrChannelFrameFg), Theme.Color(clrChannelFrameBg), tallFont, xa02 - xa00 - 2 * Margin, 2 * lineHeight, taTop | taRight | taBorder);
@@ -1131,7 +1131,6 @@ void cLCARSNGDisplayMenu::DrawPlay(cControl *Control)
lastMode = cmPlay;
}
int w = tallFont->Width(tr("PLAY")) + 2 * Gap;
- int x1 = (viewmode == escaledvideo) ? xd07 : xd07 - w - lineHeight;
tColor ColorBg = (viewmode == escaledvideo) ? Theme.Color(clrBackground) : textColorBg;
if (initial) {
DrawMainFrameUpper(replayFrameColorBr, Theme.Color(clrReplayFrameBg));
@@ -1146,6 +1145,7 @@ void cLCARSNGDisplayMenu::DrawPlay(cControl *Control)
if (Control->GetIndex(Current, Total))
DrawSeen(Current, Total);
// The current recording:
+ int x1 = (viewmode == escaledvideo) ? xd07 : xd07 - w - lineHeight;
int y1 = zoom ? yt00 : yt04;
int y2 = zoom ? yt04 : yt07;
if (const cRecording *Recording = Control->GetRecording()) {