diff options
author | louis <louis.braun@gmx.de> | 2012-12-16 11:09:24 +0100 |
---|---|---|
committer | louis <louis.braun@gmx.de> | 2012-12-16 11:09:24 +0100 |
commit | 737d17c8ed6e50718465043230e00901f632fe2c (patch) | |
tree | 11bf2080c86398e4151dafc1830439e7784aaf6b /menuitem.c | |
parent | 9c6b259eb786439fd4d1bbfdf8bff0bb059f9edd (diff) | |
download | skin-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.c | 16 |
1 files changed, 8 insertions, 8 deletions
@@ -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); |