X-Git-Url: http://git.zerfleddert.de/cgi-bin/gitweb.cgi/proxmark3-svn/blobdiff_plain/6658905f18a1eebc148836f26c731dea9c1377dc..67b9b62a7e8ebb326d1f6f51399a910c7dd7c984:/linux/proxguiqt.cpp diff --git a/linux/proxguiqt.cpp b/linux/proxguiqt.cpp index 773d74b8..f024529a 100644 --- a/linux/proxguiqt.cpp +++ b/linux/proxguiqt.cpp @@ -97,6 +97,11 @@ void ProxWidget::paintEvent(QPaintEvent *event) GraphStart = 0; } + if (CursorAPos > GraphTraceLen) + CursorAPos= 0; + if(CursorBPos > GraphTraceLen) + CursorBPos= 0; + r = rect(); painter.fillRect(r, QColor(0, 0, 0)); @@ -226,9 +231,9 @@ void ProxWidget::paintEvent(QPaintEvent *event) painter.drawPath(cursorBPath); char str[100]; - sprintf(str, "@%d max=%d min=%d mean=%d n=%d/%d dt=%d [%.3f]", + sprintf(str, "@%d max=%d min=%d mean=%d n=%d/%d dt=%d [%.3f] zoom=%.3f CursorA=%d [%d] CursorB=%d [%d]", GraphStart, yMax, yMin, yMean, n, GraphTraceLen, - CursorBPos - CursorAPos, (CursorBPos - CursorAPos)/CursorScaleFactor); + CursorBPos - CursorAPos, (CursorBPos - CursorAPos)/CursorScaleFactor,GraphPixelsPerPoint,CursorAPos,GraphBuffer[CursorAPos],CursorBPos,GraphBuffer[CursorBPos]); painter.setPen(QColor(255, 255, 255)); painter.drawText(50, r.bottom() - 20, str);