diff options
author | waker <wakeroid@gmail.com> | 2013-01-13 19:57:30 +0100 |
---|---|---|
committer | waker <wakeroid@gmail.com> | 2013-01-13 19:57:30 +0100 |
commit | 0415d009581f55e1ef931d870eea7f16a87776d6 (patch) | |
tree | 54d45d5e7f0ba25833a97a0d423449f8e19613e0 /plugins | |
parent | 3cc71dfdcec51eafaa1e4ae624436768616fd1c9 (diff) |
fixed seektime drawing
Diffstat (limited to 'plugins')
-rw-r--r-- | plugins/gtkui/callbacks.c | 6 |
1 files changed, 3 insertions, 3 deletions
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); |