diff options
| author | ghost <andreas.monzner@multimedia-labs.de> | 2011-02-09 15:10:03 +0100 |
|---|---|---|
| committer | ghost <andreas.monzner@multimedia-labs.de> | 2011-02-09 15:10:03 +0100 |
| commit | 7211bd40026fb8b00be038a59abcbfa29569b3ed (patch) | |
| tree | 341658bd44402bc6997da09e372ec4333301fe61 /lib/gui | |
| parent | 6860090ddeaaa0faf18be716f3eed439808335ba (diff) | |
| parent | 0c264458b72ac77a0129c8a702d3e8dad70f0e49 (diff) | |
| download | enigma2-7211bd40026fb8b00be038a59abcbfa29569b3ed.tar.gz enigma2-7211bd40026fb8b00be038a59abcbfa29569b3ed.zip | |
Merge branch 'bug_570_playback_skip_fixes_and_cleanup_ml_aholst'
Diffstat (limited to 'lib/gui')
| -rw-r--r-- | lib/gui/epositiongauge.cpp | 22 |
1 files changed, 14 insertions, 8 deletions
diff --git a/lib/gui/epositiongauge.cpp b/lib/gui/epositiongauge.cpp index ff98c080..e45d4a6c 100644 --- a/lib/gui/epositiongauge.cpp +++ b/lib/gui/epositiongauge.cpp @@ -112,6 +112,7 @@ int ePositionGauge::event(int event, void *data, void *data2) // painter.fill(eRect(0, 10, s.width(), s.height()-20)); pts_t in = 0, out = 0; + int xm, xm_last = -1; std::multiset<cueEntry>::iterator i(m_cue_entries.begin()); @@ -126,17 +127,22 @@ int ePositionGauge::event(int event, void *data, void *data2) continue; } else if (i->what == 1) /* out */ out = i++->where; - else if (i->what == 2) /* mark */ + else /* mark or last */ { - int xm = scale(i->where); - painter.setForegroundColor(gRGB(0xFF8080)); - painter.fill(eRect(xm - 2, 0, 4, s.height())); + xm = scale(i->where); + if (i->what == 2) { + painter.setForegroundColor(gRGB(0xFF8080)); + if (xm - 2 < xm_last) /* Make sure last is not overdrawn */ + painter.fill(eRect(xm_last, 0, 2 + xm - xm_last, s.height())); + else + painter.fill(eRect(xm - 2, 0, 4, s.height())); + } else if (i->what == 3) { + painter.setForegroundColor(gRGB(0x80FF80)); + painter.fill(eRect(xm - 1, 0, 3, s.height())); + xm_last = xm + 2; + } i++; continue; - } else /* other marker, like last position */ - { - ++i; - continue; } } |
