diff options
-rw-r--r-- | callbacks.c | 4 | ||||
-rw-r--r-- | gtkplaylist.c | 4 |
2 files changed, 6 insertions, 2 deletions
diff --git a/callbacks.c b/callbacks.c index 64de30a8..d319186f 100644 --- a/callbacks.c +++ b/callbacks.c @@ -32,7 +32,9 @@ void on_volume_value_changed (GtkRange *range, gpointer user_data) { - psdl_set_volume (gtk_range_get_value (range) / 100); +// float db = -(60 - (gtk_range_get_value (range) * 0.6f)) + float a = gtk_range_get_value (range) / 100; + psdl_set_volume (a*a); } int g_disable_seekbar_handler = 0; diff --git a/gtkplaylist.c b/gtkplaylist.c index 6f01ffbb..6190b30d 100644 --- a/gtkplaylist.c +++ b/gtkplaylist.c @@ -111,7 +111,9 @@ draw_ps_row_back (GdkDrawable *drawable, cairo_t *cr, int row, playItem_t *it) { } if (row == playlist_row) { cairo_set_source_rgb (cr, 0x7f/255.f, 0x7f/255.f, 0x7f/255.f); - cairo_rectangle (cr, 0, row * rowheight - scrollpos * rowheight, width, rowheight); + cairo_set_antialias (cr, CAIRO_ANTIALIAS_NONE); + cairo_rectangle (cr, 0, row * rowheight - scrollpos * rowheight, width, rowheight-1); + cairo_set_line_width (cr, 1); cairo_stroke (cr); } } |