From 0415d009581f55e1ef931d870eea7f16a87776d6 Mon Sep 17 00:00:00 2001 From: waker Date: Sun, 13 Jan 2013 19:57:30 +0100 Subject: fixed seektime drawing --- plugins/gtkui/callbacks.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'plugins') diff --git a/plugins/gtkui/callbacks.c b/plugins/gtkui/callbacks.c index 0dd77dab..2369ff97 100644 --- a/plugins/gtkui/callbacks.c +++ b/plugins/gtkui/callbacks.c @@ -411,9 +411,9 @@ seekbar_draw (GtkWidget *widget, cairo_t *cr) { time = dur; } char s[1000]; - int hr = time/360; - int mn = (time-hr*360)/60; - int sc = time-hr*360-mn*60; + int hr = time/3600; + int mn = (time-hr*3600)/60; + int sc = time-hr*3600-mn*60; snprintf (s, sizeof (s), "%02d:%02d:%02d", hr, mn, sc); cairo_set_source_rgba (cr, 0, 0, 0, 0.5); -- cgit v1.2.3