X-Git-Url: https://sigrok.org/gitweb/?p=pulseview.git;a=blobdiff_plain;f=logicsignal.cpp;h=77ecb2e36416812bb958de8648718337d7f39f82;hp=c42a610fb1c9c30fac8dd73e5b306b0340823570;hb=a6c0e655185fa533061fb82edde4b20684fc2083;hpb=c352ce6001d9f21eed1903f4363a4f6d181371de diff --git a/logicsignal.cpp b/logicsignal.cpp index c42a610f..77ecb2e3 100644 --- a/logicsignal.cpp +++ b/logicsignal.cpp @@ -30,6 +30,7 @@ using namespace boost; using namespace std; const float LogicSignal::Margin = 10.0f; +const float LogicSignal::Oversampling = 2.0f; const QColor LogicSignal::EdgeColour(0x80, 0x80, 0x80); const QColor LogicSignal::HighColour(0x00, 0xC0, 0x00); @@ -88,7 +89,7 @@ void LogicSignal::paint(QPainter &p, const QRect &rect, double scale, snapshot->get_subsampled_edges(edges, min(max((int64_t)floor(start), (int64_t)0), last_sample), min(max((int64_t)ceil(end), (int64_t)0), last_sample), - samples_per_pixel, _probe_index); + samples_per_pixel / Oversampling, _probe_index); assert(edges.size() >= 2); // Paint the edges