X-Git-Url: http://git.code-monkey.de/?p=pulseview.git;a=blobdiff_plain;f=pv%2Fview%2Ftrace.cpp;h=66f13edb12dac9b4cf4795af5916c026f1713772;hp=2a1eb959634fb23289cc1b12fa8c5613ef795e81;hb=857ebbef1c10cdc02df03af1fb446c704809394e;hpb=489953884c0d7692fa20748314751e114ae54cf2 diff --git a/pv/view/trace.cpp b/pv/view/trace.cpp index 2a1eb95..66f13ed 100644 --- a/pv/view/trace.cpp +++ b/pv/view/trace.cpp @@ -164,13 +164,8 @@ void Trace::paint_back(QPainter &p, const ViewItemPaintParams &pp) p.setPen(QPen(Qt::NoPen)); const pair extents = v_extents(); - - const int x = 0; - const int y = get_visual_y() + extents.first; - const int w = pp.right() - pp.left(); - const int h = extents.second - extents.first; - - p.drawRect(x, y, w, h); + p.drawRect(pp.left(), get_visual_y() + extents.first, + pp.width(), extents.second - extents.first); } void Trace::paint_axis(QPainter &p, const ViewItemPaintParams &pp, int y)