X-Git-Url: https://sigrok.org/gitweb/?p=pulseview.git;a=blobdiff_plain;f=pv%2Fview%2Fdecode%2Fannotation.cpp;fp=pv%2Fview%2Fdecode%2Fannotation.cpp;h=a2db331d4f2d0c466f0a0772435b0261ca9b1324;hp=7650b29e7715f48f419250ccc4787df1c5d40a02;hb=5dfeb70fc60f1c4752697d8ad6f80e1415213197;hpb=5069084a51b248fceaa123f451bad3d8fb01d2fb;ds=sidebyside diff --git a/pv/view/decode/annotation.cpp b/pv/view/decode/annotation.cpp index 7650b29e..a2db331d 100644 --- a/pv/view/decode/annotation.cpp +++ b/pv/view/decode/annotation.cpp @@ -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 -