summaryrefslogtreecommitdiffstats
path: root/core/mp_core.h
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2013-02-26 01:31:35 +0100
committerwm4 <wm4@nowhere>2013-02-26 02:01:49 +0100
commitf143eec611356acd9e694a1bf8dfcdf5b729a685 (patch)
tree70e808050421e95fa6e9c4bdb9f339f6ca69c796 /core/mp_core.h
parent72bdc5d3af22735753e1487fd251db09f8a20194 (diff)
downloadmpv-f143eec611356acd9e694a1bf8dfcdf5b729a685.tar.bz2
mpv-f143eec611356acd9e694a1bf8dfcdf5b729a685.tar.xz
core: use floats for OSD bar percentage display
Use floats instead of integers in the range 0-100. Currently, the OSD is currently made up of 46 elements so no change should be visible, but rendering of the bar will be changed later to use vector drawings (using pixel coordinates) instead of glyphs. This commit is for preparation.
Diffstat (limited to 'core/mp_core.h')
-rw-r--r--core/mp_core.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/core/mp_core.h b/core/mp_core.h
index c9c6a57487..25482ac3ef 100644
--- a/core/mp_core.h
+++ b/core/mp_core.h
@@ -282,6 +282,7 @@ int seek_chapter(struct MPContext *mpctx, int chapter, double *seek_pts);
double get_time_length(struct MPContext *mpctx);
double get_current_time(struct MPContext *mpctx);
int get_percent_pos(struct MPContext *mpctx);
+double get_current_pos_ratio(struct MPContext *mpctx);
int get_current_chapter(struct MPContext *mpctx);
char *chapter_display_name(struct MPContext *mpctx, int chapter);
char *chapter_name(struct MPContext *mpctx, int chapter);