mirror of
https://github.com/mpv-player/mpv
synced 2025-01-14 02:51:26 +00:00
progbar osd buffer height adjustment fix
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@8423 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
parent
ba02c7d523
commit
d9b33edbba
@ -185,14 +185,15 @@ inline static void vo_update_text_progbar(mp_osd_obj_t* obj,int dxs,int dys){
|
||||
int elems=width/charw;
|
||||
int x=(dxs-elems*charw-delimw)/2;
|
||||
int delta = 0;
|
||||
if (vo_osd_progbar_type>0 && vo_font->font[vo_osd_progbar_type]>=0){
|
||||
delta = vo_font->width[vo_osd_progbar_type]+vo_font->spacewidth;
|
||||
delta = (x-delta > 0) ? delta : x;
|
||||
}
|
||||
h=get_height(OSD_PB_START,h);
|
||||
h=get_height(OSD_PB_END,h);
|
||||
h=get_height(OSD_PB_0,h);
|
||||
h=get_height(OSD_PB_1,h);
|
||||
if (vo_osd_progbar_type>0 && vo_font->font[vo_osd_progbar_type]>=0){
|
||||
delta = vo_font->width[vo_osd_progbar_type]+vo_font->spacewidth;
|
||||
delta = (x-delta > 0) ? delta : x;
|
||||
h=get_height(vo_osd_progbar_type,h);
|
||||
}
|
||||
obj->bbox.x1=obj->x=x;
|
||||
obj->bbox.y1=obj->y=y;
|
||||
obj->bbox.x2=x+width+delimw;
|
||||
|
Loading…
Reference in New Issue
Block a user