diff options
author | Alexey Yakovenko <wakeroid@gmail.com> | 2009-09-26 16:09:43 +0200 |
---|---|---|
committer | Alexey Yakovenko <wakeroid@gmail.com> | 2009-09-26 16:09:43 +0200 |
commit | bab6c3996fbe77709a09693d3c53dca356f4e8b2 (patch) | |
tree | 50637c266091ffda54cd1c5ba439fa29098b3cd5 /gtkplaylist.c | |
parent | eec2ddb4023f4d30f6d7c9502bd2d52b6dbe9686 (diff) |
playlist drawing fix for tall unicode chars
Diffstat (limited to 'gtkplaylist.c')
-rw-r--r-- | gtkplaylist.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/gtkplaylist.c b/gtkplaylist.c index 27685010..6a434b83 100644 --- a/gtkplaylist.c +++ b/gtkplaylist.c @@ -102,7 +102,7 @@ gtkpl_init (void) { //memcpy (colo_current, colo_dark_orange, sizeof (colo_current)); play16_pixbuf = draw_load_pixbuf ("play_16.png"); pause16_pixbuf = draw_load_pixbuf ("pause_16.png"); - rowheight = draw_get_font_size () + 10; + rowheight = draw_get_font_size () + 12; memcpy (colo_current, colo_white_blue, sizeof (colo_current)); } @@ -304,10 +304,10 @@ gtkpl_draw_pl_row (gtkplaylist_t *ps, int row, playItem_t *it) { int dotpos; int cidx = ((row-ps->scrollpos) * pl_ncolumns + i) * 3; if (i == 2) { - draw_text_with_colors (x+5, row * rowheight - ps->scrollpos * rowheight + rowheight/2 - draw_get_font_size ()/2, ps->colwidths[i]-10, 1, columns[i]); + draw_text_with_colors (x+5, row * rowheight - ps->scrollpos * rowheight + rowheight/2 - draw_get_font_size ()/2 - 2, ps->colwidths[i]-10, 1, columns[i]); } else { - draw_text_with_colors (x + 5, row * rowheight - ps->scrollpos * rowheight + rowheight/2 - draw_get_font_size ()/2, ps->colwidths[i]-10, 0, columns[i]); + draw_text_with_colors (x + 5, row * rowheight - ps->scrollpos * rowheight + rowheight/2 - draw_get_font_size ()/2 - 2, ps->colwidths[i]-10, 0, columns[i]); } } x += ps->colwidths[i]; |