summaryrefslogtreecommitdiff
path: root/plugins
diff options
context:
space:
mode:
authorGravatar waker <wakeroid@gmail.com>2013-01-13 19:57:30 +0100
committerGravatar waker <wakeroid@gmail.com>2013-01-13 19:57:30 +0100
commit0415d009581f55e1ef931d870eea7f16a87776d6 (patch)
tree54d45d5e7f0ba25833a97a0d423449f8e19613e0 /plugins
parent3cc71dfdcec51eafaa1e4ae624436768616fd1c9 (diff)
fixed seektime drawing
Diffstat (limited to 'plugins')
-rw-r--r--plugins/gtkui/callbacks.c6
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);