shithub: zuke

Download patch

ref: b185cb042f1cc752ebec2a23e9d462f9a20fd204
parent: 2f722ab652fef9ba47e701033d19d6bc7814927f
author: Sigrid Haflínudóttir <ftrvxmtrx@gmail.com>
date: Tue Aug 18 04:40:08 EDT 2020

seekbar: don't do insetrect, use 'f_low' color for the seekbar background

--- a/zuke.c
+++ b/zuke.c
@@ -294,8 +294,7 @@
 	seekbar = ZR;
 	if(pcurplaying >= 0 && getmeta(pcurplaying)->duration != 0){
 		r = insetrect(sel, 3);
-		draw(screen, r, colors[Dfmed].im, nil, ZP);
-		r = insetrect(r, 1);
+		draw(screen, r, colors[Dflow].im, nil, ZP);
 		seekbar = r;
 		r.max.x = r.min.x + Dx(r) * (double)msec / (double)getmeta(pcurplaying)->duration;
 		draw(screen, r, colors[Dbinv].im, nil, ZP);
@@ -925,7 +924,7 @@
 				seekoff = getmeta(pcurplaying)->duration * (double)(m.xy.x-1-seekbar.min.x) / (double)Dx(seekbar);
 				if(seekoff < 0)
 					seekoff = 0;
-				newseekmx = m.xy.x-1;
+				newseekmx = m.xy.x;
 			}else{
 				newseekmx = -1;
 			}