1
0
mirror of https://github.com/mpv-player/mpv synced 2025-01-18 13:14:36 +00:00

Simplify -vo gl ass border etc. dimension calculation one bit more.

git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@29563 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
reimar 2009-08-27 14:07:15 +00:00
parent c2edb80335
commit c3067ee82f

View File

@ -1145,14 +1145,12 @@ static int control(uint32_t request, void *data, ...)
case VOCTRL_GET_EOSD_RES:
{
mp_eosd_res_t *r = data;
r->w = vo_dwidth; r->h = vo_dheight;
r->mt = r->mb = r->ml = r->mr = 0;
if (scaled_osd) {r->w = image_width; r->h = image_height;}
else if (vo_fs) {
r->w = vo_dwidth; r->h = vo_dheight;
r->ml = r->mr = ass_border_x;
r->mt = r->mb = ass_border_y;
} else {
r->w = vo_dwidth; r->h = vo_dheight;
}
}
return VO_TRUE;