]> sigrok.org Git - pulseview.git/blobdiff - pv/view/decodesignal.cpp
Improved annotation painting
[pulseview.git] / pv / view / decodesignal.cpp
index bc37b2019819c8c54b046467da6fc1a239b24a8e..f6611a0f05205c8e2f88c392a2b1f944ecc6abe1 100644 (file)
@@ -89,7 +89,9 @@ void DecodeSignal::paint_mid(QPainter &p, int left, int right)
        vector< shared_ptr<Annotation> > annotations(_decoder->annotations());
        BOOST_FOREACH(shared_ptr<Annotation> a, annotations) {
                assert(a);
-               a->paint(p, left, right, samples_per_pixel, pixels_offset, y);
+               a->paint(p, _colour, _colour.darker(), get_text_colour(),
+                       _text_size.height(), left, right, samples_per_pixel,
+                       pixels_offset, y);
        }
 }