mirror of https://github.com/mpv-player/mpv
fixed green lines caused by missing rounding to 2
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@5359 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
parent
e62a51110c
commit
cc996ad526
|
@ -917,7 +917,7 @@ static int setup_surfaces(void)
|
||||||
|
|
||||||
surfwidth = priv->width;
|
surfwidth = priv->width;
|
||||||
surfheight = priv->height + (priv->surface->h - priv->dstheight) / v_scale;
|
surfheight = priv->height + (priv->surface->h - priv->dstheight) / v_scale;
|
||||||
|
surfheight&= ~1;
|
||||||
/* Place the image in the middle of the screen */
|
/* Place the image in the middle of the screen */
|
||||||
priv->y = (surfheight - priv->height) / 2;
|
priv->y = (surfheight - priv->height) / 2;
|
||||||
priv->y_screen_top = priv->y * v_scale;
|
priv->y_screen_top = priv->y * v_scale;
|
||||||
|
|
Loading…
Reference in New Issue