]> sigrok.org Git - pulseview.git/commit
Ruler: Factor out the calculation of the tick spacing
authorJens Steinhauser <redacted>
Thu, 3 Sep 2015 13:26:17 +0000 (15:26 +0200)
committerUwe Hermann <redacted>
Fri, 4 Sep 2015 10:54:52 +0000 (12:54 +0200)
commit4b0af0b67fe57e0880bcb8aa13b4fa807f3aaac0
tree3c61b881d55ad210ef1942d49a8f7c86cb1c0dfc
parent17b1aa177651aae05bd94d3310ef7e8e25ec9899
Ruler: Factor out the calculation of the tick spacing

This avoids useless recalculations of the tick spacings on every mouse
pointer move and makes the function easier to test.
pv/view/ruler.cpp
pv/view/ruler.hpp
pv/view/view.cpp
pv/view/view.hpp