From af2d53cb87d5cadf58043c5ecc7f71bb093f8653 Mon Sep 17 00:00:00 2001 From: "adam@algroup.co.uk" Date: Wed, 8 Jul 2009 09:58:20 +0000 Subject: [PATCH] show samples values at cursor A & B in plots --- linux/proxguiqt.cpp | 4 ++-- winsrc/gui.cpp | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/linux/proxguiqt.cpp b/linux/proxguiqt.cpp index cd8d9a73..54db050e 100644 --- a/linux/proxguiqt.cpp +++ b/linux/proxguiqt.cpp @@ -231,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] zoom=%.3f CursorA=%d CursorB=%d", + 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,GraphPixelsPerPoint,CursorAPos,CursorBPos); + 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); diff --git a/winsrc/gui.cpp b/winsrc/gui.cpp index 0d2043cc..7dc9b404 100644 --- a/winsrc/gui.cpp +++ b/winsrc/gui.cpp @@ -248,9 +248,9 @@ static void PaintGraph(HDC hdc) } char str[100]; - sprintf(str, "@%d max=%d min=%d mean=%d n=%d/%d dt=%d [%.3f] zoom=%.3f CursorA=%d CursorB=%d", + 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, GraphPixelsPerPoint, CursorAPos, CursorBPos); + CursorBPos - CursorAPos, (CursorBPos - CursorAPos)/CursorScaleFactor, GraphPixelsPerPoint, CursorAPos, GraphBuffer[CursorAPos], CursorBPos, GraphBuffer[CursorBPos]); TextOut(hdc, 50, r.bottom - 20, str, strlen(str)); } -- 2.39.5