X-Git-Url: https://sigrok.org/gitweb/?p=pulseview.git;a=blobdiff_plain;f=logicsignal.cpp;h=5be9b01576614eff7106e1dc8ae2ce77824b7b7f;hp=c42a610fb1c9c30fac8dd73e5b306b0340823570;hb=b3f22de060b73f15ad3eb2dabee04a0b4f5d947e;hpb=c352ce6001d9f21eed1903f4363a4f6d181371de diff --git a/logicsignal.cpp b/logicsignal.cpp index c42a610f..5be9b015 100644 --- a/logicsignal.cpp +++ b/logicsignal.cpp @@ -1,5 +1,5 @@ /* - * This file is part of the sigrok project. + * This file is part of the PulseView project. * * Copyright (C) 2012 Joel Holdsworth * @@ -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