mirror of
https://github.com/Llewellynvdm/conky.git
synced 2024-12-23 19:39:06 +00:00
fixed font alignment
git-svn-id: https://conky.svn.sourceforge.net/svnroot/conky/trunk/conky@30 7f574dfc-610e-0410-a909-a81674777703
This commit is contained in:
parent
0670d09879
commit
afb4ebe41e
3
conky.c
3
conky.c
@ -2426,6 +2426,7 @@ static void text_size_updater(char *s)
|
||||
w += specials[special_index].width;
|
||||
if ( specials[special_index].height > h ) {
|
||||
h = specials[special_index].height;
|
||||
h += font_ascent();
|
||||
}
|
||||
}
|
||||
|
||||
@ -2810,7 +2811,7 @@ static void draw_line(char *s)
|
||||
}
|
||||
if (cur_y_add > 0) {
|
||||
cur_y += cur_y_add;
|
||||
cur_y -= font_ascent();
|
||||
cur_y -= font_descent();
|
||||
}
|
||||
|
||||
draw_string(s);
|
||||
|
Loading…
Reference in New Issue
Block a user