Enlightenment CVS committal
Author : dj2
Project : e17
Module : libs/ewl
Dir : e17/libs/ewl/test
Modified Files:
ewl_media_test.c
Log Message:
- move the time calculations into ewl_media itself. there is now a
ewl_media_length_time_get() and ewl_media_position_time_get() taking the
hour, min, sec variables and setting them accordingly
- update ewl_media_test.c to use these calls
===================================================================
RCS file: /cvsroot/enlightenment/e17/libs/ewl/test/ewl_media_test.c,v
retrieving revision 1.6
retrieving revision 1.7
diff -u -3 -r1.6 -r1.7
--- ewl_media_test.c 17 Jul 2004 04:08:35 -0000 1.6
+++ ewl_media_test.c 18 Jul 2004 18:21:48 -0000 1.7
@@ -75,11 +75,7 @@
double pos = ewl_media_position_get(EWL_MEDIA(video));
ewl_seeker_set_value(EWL_SEEKER(seeker), pos);
-
- /* stolen from envision by benr */
- h = (int)pos / (60 * 60);
- m = ((int)pos / 60) - (h * 60);
- s = pos - (h * 60 * 60) - (m * 60);
+ ewl_media_position_time_get(EWL_MEDIA(video), &h, &m, &s);
snprintf(buf, sizeof(buf), "%02i:%02i:%02.0f", h, m, s);
ewl_text_text_set(t, buf);
-------------------------------------------------------
This SF.Net email is sponsored by BEA Weblogic Workshop
FREE Java Enterprise J2EE developer tools!
Get your free copy of BEA WebLogic Workshop 8.1 today.
http://ads.osdn.com/?ad_id=4721&alloc_id=10040&op=click
_______________________________________________
enlightenment-cvs mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs