projects
/
pulseview.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
f0b9925
)
Use multiple drawLine() calls instead of drawPolyline()
author
Ryan Govostes
<rgovostes+git@gmail.com>
Mon, 25 Mar 2019 16:50:25 +0000
(17:50 +0100)
committer
Uwe Hermann
<uwe@hermann-uwe.de>
Thu, 28 Mar 2019 18:41:16 +0000
(19:41 +0100)
pv/views/trace/analogsignal.cpp
patch
|
blob
|
history
diff --git
a/pv/views/trace/analogsignal.cpp
b/pv/views/trace/analogsignal.cpp
index 60ba2ca9831b0cd94fc95ea85d93156d771ffe06..3430ab3cf48eb6996ca0cd52901c1d9c884aa4cb 100644
(file)
--- a/
pv/views/trace/analogsignal.cpp
+++ b/
pv/views/trace/analogsignal.cpp
@@
-444,7
+444,9
@@
void AnalogSignal::paint_trace(QPainter &p,
}
delete[] sample_block;
}
delete[] sample_block;
- p.drawPolyline(points, points_count);
+ // QPainter::drawPolyline() is slow, let's paint the lines ourselves
+ for (int64_t i = 1; i < points_count; i++)
+ p.drawLine(points[i - 1], points[i]);
if (show_sampling_points) {
if (paint_thr_dots) {
if (show_sampling_points) {
if (paint_thr_dots) {