X-Git-Url: https://git.cweiske.de/enigma2.git/blobdiff_plain/6dcb75c26bbfec04b381bb99d75404f9fe50635d..4dda70dcac6996c8b0a2016c49d6cfbab7128fee:/lib/gui/epositiongauge.cpp diff --git a/lib/gui/epositiongauge.cpp b/lib/gui/epositiongauge.cpp index fbb24571..b3ee5111 100644 --- a/lib/gui/epositiongauge.cpp +++ b/lib/gui/epositiongauge.cpp @@ -43,6 +43,11 @@ void ePositionGauge::setInColor(const gRGB &color) invalidate(); } +void ePositionGauge::setPointer(int which, ePtr &pixmap, const ePoint ¢er) +{ + setPointer(which, pixmap.operator->(), center); +} + void ePositionGauge::setPointer(int which, gPixmap *pixmap, const ePoint ¢er) { if (which == 0) @@ -70,14 +75,14 @@ void ePositionGauge::setInOutList(ePyObject list) for (i=0; iwhat == 1) /* out */ out = i++->where; - else /* mark */ + else if (i->what == 2) /* mark */ { int xm = scale(i->where); painter.setForegroundColor(gRGB(0xFF8080)); painter.fill(eRect(xm - 2, 0, 4, s.height())); i++; continue; + } else /* other marker, like last position */ + { + ++i; + continue; } }