summaryrefslogtreecommitdiff
path: root/gtkplaylist.c
diff options
context:
space:
mode:
authorGravatar waker <waker@studio.localdomain>2009-09-05 10:31:37 +0200
committerGravatar waker <waker@studio.localdomain>2009-09-05 10:31:46 +0200
commita3eba559fc4bd229079abab4a7d446daab4f4f78 (patch)
treeb2191fc7e0c21cf66c49abd63ba96d8ec819a639 /gtkplaylist.c
parenta9df4d2f939b0d2f0e2b02dd67849fd0ea332501 (diff)
centered playing icon vertically
Diffstat (limited to 'gtkplaylist.c')
-rw-r--r--gtkplaylist.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gtkplaylist.c b/gtkplaylist.c
index 5b60c419..0e14435f 100644
--- a/gtkplaylist.c
+++ b/gtkplaylist.c
@@ -260,7 +260,7 @@ gtkpl_draw_pl_row (gtkplaylist_t *ps, int row, playItem_t *it) {
draw_get_canvas_size ((uintptr_t)ps->backbuf, &width, &height);
if (it == playlist_current_ptr && ps->colwidths[0] > 0/* && !p_isstopped ()*/) {
uintptr_t pixbuf = p_ispaused () ? pause16_pixbuf : play16_pixbuf;
- draw_pixbuf ((uintptr_t)ps->backbuf, pixbuf, ps->colwidths[0]/2-8, row * rowheight - ps->scrollpos * rowheight, 0, 0, 16, 16);
+ draw_pixbuf ((uintptr_t)ps->backbuf, pixbuf, ps->colwidths[0]/2-8, (row - ps->scrollpos) * rowheight + rowheight/2 - 8, 0, 0, 16, 16);
}
if (it && ((it->selected && ps->multisel) || (row == ps->row && !ps->multisel))) {
if (row % 2) {