yMean /= n;\r
}\r
\r
- char str[100];\r
+ char str[200];\r
+\r
sprintf(str, "@%d max=%d min=%d mean=%d n=%d/%d dt=%d [%.3f] zoom=%.3f CursorA=%d [%d] CursorB=%d [%d]",\r
GraphStart, yMax, yMin, yMean, n, GraphTraceLen,\r
- CursorBPos - CursorAPos, (CursorBPos - CursorAPos)/CursorScaleFactor, GraphPixelsPerPoint, CursorAPos, GraphBuffer[CursorAPos], CursorBPos, GraphBuffer[CursorBPos]);\r
+ CursorBPos - CursorAPos, (CursorBPos - CursorAPos)/CursorScaleFactor, GraphPixelsPerPoint,\r
+ CursorAPos, GraphBuffer[CursorAPos], CursorBPos, GraphBuffer[CursorBPos]);\r
TextOut(hdc, 50, r.bottom - 20, str, strlen(str));\r
}\r
\r
x -= offset;\r
x = (int)(x / GraphPixelsPerPoint);\r
x += GraphStart;\r
+\r
if(msg == WM_LBUTTONDOWN) {\r
CursorAPos = x;\r
} else {\r