mirror of
https://github.com/mpv-player/mpv
synced 2025-01-16 03:51:48 +00:00
vo_vdpau: improve VOCTRL_GET_EOSD_RES code
Remove the special case for fullscreen; the same variables should have the correct values in windowed and fullscreen modes. This fixes libass subtitle positioning in the (non-typical) case where you have black bands inside a window. Behavior in fullscreen and in the typical windowed case without borders should not be affected.
This commit is contained in:
parent
0a2a78c62e
commit
5ff421bf5d
@ -1785,16 +1785,10 @@ static int control(struct vo *vo, uint32_t request, void *data)
|
||||
return VO_TRUE;
|
||||
case VOCTRL_GET_EOSD_RES: {
|
||||
mp_eosd_res_t *r = data;
|
||||
r->mt = r->mb = r->ml = r->mr = 0;
|
||||
if (vo_fs) {
|
||||
r->w = vo->opts->vo_screenwidth;
|
||||
r->h = vo->opts->vo_screenheight;
|
||||
r->ml = r->mr = vc->border_x;
|
||||
r->mt = r->mb = vc->border_y;
|
||||
} else {
|
||||
r->w = vo->dwidth;
|
||||
r->h = vo->dheight;
|
||||
}
|
||||
r->w = vo->dwidth;
|
||||
r->h = vo->dheight;
|
||||
r->ml = r->mr = vc->border_x;
|
||||
r->mt = r->mb = vc->border_y;
|
||||
return VO_TRUE;
|
||||
}
|
||||
case VOCTRL_REDRAW_OSD:
|
||||
|
Loading…
Reference in New Issue
Block a user