]> sigrok.org Git - pulseview.git/blobdiff - pv/view/decode/annotation.cpp
Paint the unresolved area to show the decode progress
[pulseview.git] / pv / view / decode / annotation.cpp
index 7650b29e7715f48f419250ccc4787df1c5d40a02..a2db331d4f2d0c466f0a0772435b0261ca9b1324 100644 (file)
@@ -67,11 +67,10 @@ Annotation::Annotation(const srd_proto_data *const pdata) :
        }
 }
 
-void Annotation::paint(QPainter &p, QColor text_color, int text_height,
+void Annotation::paint(QPainter &p, QColor text_color, int h,
        int left, int right, double samples_per_pixel, double pixels_offset,
        int y)
 {
-       const int h = (text_height * 5) / 4;
        const double start = _start_sample / samples_per_pixel -
                pixels_offset;
        const double end = _end_sample / samples_per_pixel -