mirror of https://github.com/mpv-player/mpv
vo_corevideo: use dwidth/dheight for window dimensions
In the previous commit I wrongly used params->d_h/d_w which happened to work by chance.
This commit is contained in:
parent
dc2ebae8cf
commit
c2cb85851f
|
@ -152,7 +152,7 @@ static int reconfig(struct vo *vo, struct mp_image_params *params, int flags)
|
|||
|
||||
int mpgl_caps = MPGL_CAP_GL_LEGACY;
|
||||
if (!mpgl_config_window(
|
||||
p->mpglctx, mpgl_caps, params->d_w, params->d_h, flags))
|
||||
p->mpglctx, mpgl_caps, vo->dwidth, vo->dheight, flags))
|
||||
return -1;
|
||||
|
||||
init_gl(vo, vo->dwidth, vo->dheight);
|
||||
|
|
Loading…
Reference in New Issue