projects
/
pulseview.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d1bb7d7
)
Draw analog with a polyline rather than points
author
Joel Holdsworth
<joel@airwebreathe.org.uk>
Wed, 20 Mar 2013 20:24:55 +0000
(20:24 +0000)
committer
Joel Holdsworth
<joel@airwebreathe.org.uk>
Thu, 21 Mar 2013 22:44:19 +0000
(22:44 +0000)
pv/view/analogsignal.cpp
patch
|
blob
|
history
diff --git
a/pv/view/analogsignal.cpp
b/pv/view/analogsignal.cpp
index e29930865f6601eccf8b43986db1f44f9523b090..251a0ffb5681870b165be0aac83de77d0d8f97f1 100644
(file)
--- a/
pv/view/analogsignal.cpp
+++ b/
pv/view/analogsignal.cpp
@@
-82,7
+82,7
@@
void AnalogSignal::paint(QPainter &p, int y, int left, int right, double scale,
const int64_t start_sample = min(max((int64_t)floor(start),
(int64_t)0), last_sample);
- const int64_t end_sample = min(max((int64_t)ceil(end),
+ const int64_t end_sample = min(max((int64_t)ceil(end)
+ 1
,
(int64_t)0), last_sample);
if (samples_per_pixel < EnvelopeThreshold)
@@
-117,7
+117,7
@@
void AnalogSignal::paint_trace(QPainter &p,
y - samples[sample - start] * _scale);
}
- p.drawPo
ints
(points, point - points);
+ p.drawPo
lyline
(points, point - points);
delete[] samples;
delete[] points;