]> sigrok.org Git - pulseview.git/commit
DecodeTrace: Try to keep annotation labels within the view
authorSoeren Apel <redacted>
Thu, 4 Feb 2016 21:38:34 +0000 (22:38 +0100)
committerSoeren Apel <redacted>
Thu, 4 Feb 2016 21:38:34 +0000 (22:38 +0100)
commit7352be721b90b630efd742b53e1a0ea16bb834b8
tree2efee9dc86f048035a8d9c59aeb61ece3a911514
parentbdc2a99bcaa5aba7c6de2543bab6534299b8a5ee
DecodeTrace: Try to keep annotation labels within the view

Up until now, annotation labels were always drawn centered,
even if the annotation was very wide and mostly off-screen.
This resulted in annotation labels being out of view, even
if there would be enough space to draw it within the view.
This patch fixes this.
pv/view/decodetrace.cpp
pv/view/decodetrace.hpp