changeset 735:35e19f8de781 trunk

[svn] drag and drop line rendering fix
author nenolod
date Mon, 27 Feb 2006 16:42:12 -0800
parents 9a5075ce88a8
children 113f66421a62
files audacious/playlist_list.c
diffstat 1 files changed, 2 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/audacious/playlist_list.c	Mon Feb 27 15:54:47 2006 -0800
+++ b/audacious/playlist_list.c	Mon Feb 27 16:42:12 2006 -0800
@@ -680,8 +680,7 @@
                                                      SKIN_PLEDIT_CURRENT));
 
                 gdk_draw_line(obj, gc, pl->pl_widget.x,
-			      pl->pl_widget.x + lpadding + 
-			      (width_approx_letters / 4),
+			      pl->pl_widget.y + ((pos - pl->pl_first) * pl->pl_fheight),
                               pl->pl_widget.width + pl->pl_widget.x - 1,
                               pl->pl_widget.y +
                               ((pos - pl->pl_first) * pl->pl_fheight));
@@ -701,7 +700,7 @@
                                                      SKIN_PLEDIT_CURRENT));
 
                 gdk_draw_line(obj, gc, pl->pl_widget.x,
-			      pl->pl_widget.x + lpadding + 
+			      pl->pl_widget.y + lpadding + 
 			      (width_approx_letters / 4),
                               pl->pl_widget.width + pl->pl_widget.x - 1,
                               pl->pl_widget.y +