mirror of
https://github.com/mpv-player/mpv
synced 2024-11-18 21:16:10 +01:00
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;
|
||||
surfheight = priv->height + (priv->surface->h - priv->dstheight) / v_scale;
|
||||
|
||||
surfheight&= ~1;
|
||||
/* Place the image in the middle of the screen */
|
||||
priv->y = (surfheight - priv->height) / 2;
|
||||
priv->y_screen_top = priv->y * v_scale;
|
||||
|
Loading…
Reference in New Issue
Block a user