summaryrefslogtreecommitdiff
path: root/gtkplaylist.c
diff options
context:
space:
mode:
authorGravatar Alexey Yakovenko <wakeroid@gmail.com>2009-09-20 12:16:59 +0200
committerGravatar Alexey Yakovenko <wakeroid@gmail.com>2009-09-20 12:16:59 +0200
commit7f1729503ba90beff01121dab50e1f32f0175107 (patch)
tree175393cb46a0e15dae7c6552b128ff17cc0985b1 /gtkplaylist.c
parente02a90db751423453b45a5b06cf1e66d7a9c6708 (diff)
fixed stopped state drawing in playlist
Diffstat (limited to 'gtkplaylist.c')
-rw-r--r--gtkplaylist.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/gtkplaylist.c b/gtkplaylist.c
index 0c39cde9..70daa6da 100644
--- a/gtkplaylist.c
+++ b/gtkplaylist.c
@@ -44,6 +44,9 @@
#include "drawing.h"
#include "session.h"
+//#define trace(...) { fprintf(stderr, __VA_ARGS__); }
+#define trace(fmt,...)
+
// orange on dark color scheme
float colo_dark_orange[COLO_COUNT][3] = {
{ 0x7f/255.f, 0x7f/255.f, 0x7f/255.f }, // cursor
@@ -237,7 +240,7 @@ gtkpl_draw_pl_row (gtkplaylist_t *ps, int row, playItem_t *it) {
}
int width, height;
draw_get_canvas_size ((uintptr_t)ps->backbuf, &width, &height);
- if (it == playlist_current_ptr && ps->colwidths[0] > 0/* && !p_isstopped ()*/) {
+ 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-ps->hscrollpos, (row - ps->scrollpos) * rowheight + rowheight/2 - 8, 0, 0, 16, 16);
}