projects
/
ardour.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6bbb2c7
)
vertically center text in time rulers
author
Robin Gareus
<robin@gareus.org>
Mon, 19 Dec 2016 12:24:20 +0000
(13:24 +0100)
committer
Robin Gareus
<robin@gareus.org>
Mon, 19 Dec 2016 12:27:22 +0000
(13:27 +0100)
libs/canvas/ruler.cc
patch
|
blob
|
history
diff --git
a/libs/canvas/ruler.cc
b/libs/canvas/ruler.cc
index 75c2d0f719404203750d431b7607f7d93700f830..f55129662acdfb510beba6604429e950bd671e3a 100644
(file)
--- a/
libs/canvas/ruler.cc
+++ b/
libs/canvas/ruler.cc
@@
-189,7
+189,7
@@
Ruler::render (Rect const & area, Cairo::RefPtr<Cairo::Context> cr) const
if (_divide_height >= 0) {
cr->move_to (pos.x + 2.0, self.y0 + _divide_height + logical.get_y() + 2.0); /* 2 pixel padding below divider */
} else {
- cr->move_to (pos.x + 2.0, self.y0 + logical.get_y());
+ cr->move_to (pos.x + 2.0, self.y0 + logical.get_y()
+ .5 * (height - logical.get_height())
);
}
layout->show_in_cairo_context (cr);
}