summaryrefslogtreecommitdiff
path: root/menuitem.c
diff options
context:
space:
mode:
authorkamel5 <vdr.kamel5 (at) gmx (dot) net>2021-07-11 14:02:45 +0200
committerkamel5 <vdr.kamel5 (at) gmx (dot) net>2021-07-30 14:17:59 +0200
commitb6e1d8c80056ad8b90cca019cba69186baa4519e (patch)
tree8815ec74b3823b92d72013a3837566ec76c24543 /menuitem.c
parent43862c7c80eb8ff2b113a02c708e51498cdffab1 (diff)
downloadskin-nopacity-b6e1d8c80056ad8b90cca019cba69186baa4519e.tar.gz
skin-nopacity-b6e1d8c80056ad8b90cca019cba69186baa4519e.tar.bz2
Add "Use animation" to setup
With this menu item, the use of animation can be switched off centrally.
Diffstat (limited to 'menuitem.c')
-rw-r--r--menuitem.c38
1 files changed, 22 insertions, 16 deletions
diff --git a/menuitem.c b/menuitem.c
index 79a8c36..66ed777 100644
--- a/menuitem.c
+++ b/menuitem.c
@@ -427,8 +427,9 @@ void cNopacityMainMenuItem::Render(bool initial, bool fadeout) {
}
}
SetTextShort();
- if (current && scrollable && !Running() && config.GetValue("menuScrollSpeed")) {
- Start();
+ if (config.GetValue("animation") && config.GetValue("menuScrollSpeed")) {
+ if (current && scrollable && !Running())
+ Start();
}
if (wasCurrent && !current && scrollable && Running()) {
pixmapTextScroller->SetDrawPortPoint(cPoint(0, 0));
@@ -557,8 +558,9 @@ void cNopacityScheduleMenuItem::Render(bool initial, bool fadeout) {
drawn = true;
}
SetTextShort();
- if (current && scrollable && !Running() && config.GetValue("menuScrollSpeed")) {
- Start();
+ if (config.GetValue("animation") && config.GetValue("menuScrollSpeed")) {
+ if (current && scrollable && !Running())
+ Start();
}
if (wasCurrent && !current && scrollable && Running()) {
pixmapTextScroller->SetDrawPortPoint(cPoint(0, 0));
@@ -572,7 +574,7 @@ void cNopacityScheduleMenuItem::Render(bool initial, bool fadeout) {
}
if (current && Event) {
if (config.GetValue("menuSchedulesWindowMode") == 0) {
- if (!fadeout) {
+ if (config.GetValue("animation") && !fadeout) {
//window mode
infoTextWindow = new cNopacityTextWindow(osd, fontEPGWindow, vidWin);
infoTextWindow->SetGeometry(textWindow);
@@ -910,8 +912,9 @@ void cNopacityChannelMenuItem::Render(bool initial, bool fadeout) {
drawn = true;
}
SetTextShort();
- if (current && scrollable && !Running() && config.GetValue("menuScrollSpeed")) {
- Start();
+ if (config.GetValue("animation") && config.GetValue("menuScrollSpeed")) {
+ if (current && scrollable && !Running())
+ Start();
}
if (wasCurrent && !current && scrollable && Running()) {
pixmapTextScroller->SetDrawPortPoint(cPoint(0, 0));
@@ -924,7 +927,7 @@ void cNopacityChannelMenuItem::Render(bool initial, bool fadeout) {
infoTextWindow = NULL;
}
if (current && Channel && (config.GetValue("menuChannelDisplayMode") == 0)) {
- if (!fadeout) {
+ if (config.GetValue("animation") && !fadeout) {
infoTextWindow = new cNopacityTextWindow(osd, fontEPGWindow, vidWin);
infoTextWindow->SetGeometry(textWindow);
infoTextWindow->SetText(readEPG().c_str());
@@ -1086,8 +1089,9 @@ void cNopacityTimerMenuItem::Render(bool initial, bool fadeout) {
}
if (!Running())
SetTextShort();
- if (current && scrollable && !Running() && config.GetValue("menuScrollSpeed")) {
- Start();
+ if (config.GetValue("animation") && config.GetValue("menuScrollSpeed")) {
+ if (current && scrollable && !Running())
+ Start();
}
if (wasCurrent && !current && scrollable && Running()) {
pixmapTextScroller->SetDrawPortPoint(cPoint(0, 0));
@@ -1102,7 +1106,7 @@ void cNopacityTimerMenuItem::Render(bool initial, bool fadeout) {
const cEvent *Event = Timer->Event();
if (current && Event) {
if (config.GetValue("menuTimersWindowMode") == 0) {
- if (!fadeout) {
+ if (config.GetValue("animation") && !fadeout) {
//window mode
infoTextWindow = new cNopacityTextWindow(osd, fontEPGWindow, vidWin);
infoTextWindow->SetGeometry(textWindow);
@@ -1435,8 +1439,9 @@ void cNopacityRecordingMenuItem::Render(bool initial, bool fadeout) {
DrawRecordingIcons();
SetTextShort();
}
- if (current && scrollable && !Running() && config.GetValue("menuScrollSpeed")) {
- Start();
+ if (config.GetValue("animation") && config.GetValue("menuScrollSpeed")) {
+ if (current && scrollable && !Running())
+ Start();
}
if (wasCurrent && !current && scrollable && Running()) {
pixmapTextScroller->SetDrawPortPoint(cPoint(0, 0));
@@ -1451,7 +1456,7 @@ void cNopacityRecordingMenuItem::Render(bool initial, bool fadeout) {
}
if (current) {
if (config.GetValue("menuRecordingsWindowMode") == 0) {
- if (!fadeout) {
+ if (config.GetValue("animation") && !fadeout) {
//window mode
infoTextWindow = new cNopacityTextWindow(osd, fontEPGWindow, vidWin);
infoTextWindow->SetGeometry(textWindow);
@@ -1674,8 +1679,9 @@ void cNopacityDefaultMenuItem::Render(bool initial, bool fadeout) {
break;
}
- if (current && scrollable && !Running() && config.GetValue("menuScrollSpeed")) {
- Start();
+ if (config.GetValue("animation") && config.GetValue("menuScrollSpeed")) {
+ if (current && scrollable && !Running())
+ Start();
}
if (wasCurrent && !current && scrollable && Running()) {
pixmapTextScroller->SetDrawPortPoint(cPoint(0, 0));