mirror of https://github.com/mpv-player/mpv
corrections to OSD mark position
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@1879 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
parent
e00e5a58f4
commit
87baa9c196
|
@ -56,8 +56,13 @@ inline static void vo_draw_text_progbar(int dxs,int dys,void (*draw_alpha)(int x
|
|||
|
||||
if (vo_osd_progbar_value<=0)
|
||||
mark=0;
|
||||
else if ((mark=(vo_osd_progbar_value*elems)>>8)>elems)
|
||||
mark=elems;
|
||||
else {
|
||||
int ev=vo_osd_progbar_value*elems;
|
||||
mark=ev>>8;
|
||||
if (ev & 0xFF) mark++;
|
||||
if (mark>elems) mark=elems;
|
||||
}
|
||||
|
||||
|
||||
// printf("osd.progbar width=%d xpos=%d\n",width,x);
|
||||
|
||||
|
|
Loading…
Reference in New Issue