commit a3057999aa69888671353452f3648ca62361b4ba
parent 025d0bbe1e440f7d34b21bc1f7c7b1e14d88fdf3
Author: Alexander Kojevnikov <alexander@kojevnikov.com>
Date: Mon, 28 Mar 2011 16:41:55 +0800
A hack to fix vertical alignment of tick labels
Diffstat:
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/src/spek-ruler.vala b/src/spek-ruler.vala
@@ -93,11 +93,11 @@ namespace Spek {
if (pos == Position.TOP) {
cr.move_to (p - w / 2, -GAP - h);
} else if (pos == Position.RIGHT){
- cr.move_to (GAP, p + h / 2);
+ cr.move_to (GAP, p + h / 4);
} else if (pos == Position.BOTTOM) {
cr.move_to (p - w / 2, GAP + h);
} else if (pos == Position.LEFT){
- cr.move_to (-w - GAP, p + h / 2);
+ cr.move_to (-w - GAP, p + h / 4);
}
cairo_show_layout_line (cr, layout.get_line (0));
if (pos == Position.TOP) {