summaryrefslogtreecommitdiff
path: root/menuitem.c
diff options
context:
space:
mode:
authorlouis <louis.braun@gmx.de>2012-12-16 11:09:24 +0100
committerlouis <louis.braun@gmx.de>2012-12-16 11:09:24 +0100
commit737d17c8ed6e50718465043230e00901f632fe2c (patch)
tree11bf2080c86398e4151dafc1830439e7784aaf6b /menuitem.c
parent9c6b259eb786439fd4d1bbfdf8bff0bb059f9edd (diff)
downloadskin-nopacity-737d17c8ed6e50718465043230e00901f632fe2c.tar.gz
skin-nopacity-737d17c8ed6e50718465043230e00901f632fe2c.tar.bz2
Fixed Bug that scrolling didn't work when jumping directly to a menuelement
Diffstat (limited to 'menuitem.c')
-rw-r--r--menuitem.c16
1 files changed, 8 insertions, 8 deletions
diff --git a/menuitem.c b/menuitem.c
index 212b996..91b7f2e 100644
--- a/menuitem.c
+++ b/menuitem.c
@@ -244,10 +244,10 @@ void cNopacityMainMenuItem::Render() {
drawn = true;
}
SetTextShort();
- if (current && scrollable && config.menuScrollSpeed) {
+ if (current && scrollable && !Running() && config.menuScrollSpeed) {
Start();
}
- if (wasCurrent && scrollable && Running()) {
+ if (wasCurrent && !current && scrollable && Running()) {
pixmapTextScroller->SetDrawPortPoint(cPoint(0, 0));
SetTextShort();
Cancel(-1);
@@ -476,10 +476,10 @@ void cNopacityScheduleMenuItem::Render() {
SetTextShort();
drawn = true;
}
- if (current && scrollable && config.menuScrollSpeed) {
+ if (current && scrollable && !Running() && config.menuScrollSpeed) {
Start();
}
- if (wasCurrent && scrollable && Running()) {
+ if (wasCurrent && !current && scrollable && Running()) {
pixmapTextScroller->SetDrawPortPoint(cPoint(0, 0));
SetTextShort();
Cancel(-1);
@@ -592,10 +592,10 @@ void cNopacityChannelMenuItem::Render() {
drawn = true;
}
SetTextShort();
- if (current && scrollable && config.menuScrollSpeed) {
+ if (current && scrollable && !Running() && config.menuScrollSpeed) {
Start();
}
- if (wasCurrent && scrollable && Running()) {
+ if (wasCurrent && !current && scrollable && Running()) {
pixmapTextScroller->SetDrawPortPoint(cPoint(0, 0));
SetTextShort();
Cancel(-1);
@@ -680,10 +680,10 @@ void cNopacityDefaultMenuItem::Render() {
} else
break;
}
- if (current && scrollable && !Running() && config.menuScrollSpeed) {
+ if (current && scrollable && !Running() && config.menuScrollSpeed) {
Start();
}
- if (wasCurrent && (current != wasCurrent) && scrollable && Running()) {
+ if (wasCurrent && !current && scrollable && Running()) {
pixmapTextScroller->SetDrawPortPoint(cPoint(0, 0));
SetTextShort();
Cancel(-1);