1
0
mirror of https://github.com/Llewellynvdm/conky.git synced 2024-11-05 21:07:52 +00:00
git-svn-id: https://conky.svn.sourceforge.net/svnroot/conky/trunk/conky@72 7f574dfc-610e-0410-a909-a81674777703
This commit is contained in:
Brenden Matthews 2005-08-07 07:48:57 +00:00
parent 2abb4eb366
commit 634b3e9c97
2 changed files with 3 additions and 6 deletions

2
TODO
View File

@ -3,5 +3,5 @@
* simple buttons? * simple buttons?
* icecast status * icecast status
* rewrite parts of code, making them more effecient and modular (in particular, the way objects are handled is a complete mess) * rewrite parts of code, making them more effecient and modular (in particular, the way objects are handled is a complete mess)
* network transparency * network transparency (aim for 1.5)
* think of new features to add * think of new features to add

View File

@ -3111,11 +3111,8 @@ static void draw_line(char *s)
case ALIGNC: case ALIGNC:
{ {
int pos_x = printf("text_start_x %i text_width %i cur_x %i get_string_width(p) %i text_width %i\n", text_start_x, text_width, cur_x, get_string_width(p), text_width);
text_start_x + text_width - int pos_x = (text_start_x*2) + text_width - cur_x - ((float)get_string_width(p) / 2) - ((float)text_width / 2);
cur_x - 1 -
get_string_width(p) / 2 -
(text_width / 2);
if (pos_x > if (pos_x >
specials[special_index].arg) specials[special_index].arg)
w = pos_x - w = pos_x -