Mercurial > mplayer.hg
diff libvo/vo_gl2.c @ 17127:f650267ecc3a
signed division must be used for calculation vo_dx and vo_dy.
Fixes a bug that causes overbig windows to disappear on Windows.
author | reimar |
---|---|
date | Wed, 07 Dec 2005 15:56:27 +0000 |
parents | 724353364790 |
children | a27e52b838e3 |
line wrap: on
line diff
--- a/libvo/vo_gl2.c Wed Dec 07 15:53:02 2005 +0000 +++ b/libvo/vo_gl2.c Wed Dec 07 15:56:27 2005 +0000 @@ -820,8 +820,8 @@ aspect_save_screenres(vo_screenwidth,vo_screenheight); aspect(&d_width,&d_height,A_NOZOOM); - vo_dx = (vo_screenwidth - d_width) / 2; - vo_dy = (vo_screenheight - d_height) / 2; + vo_dx = (int)(vo_screenwidth - d_width) / 2; + vo_dy = (int)(vo_screenheight - d_height) / 2; geometry(&vo_dx, &vo_dy, &d_width, &d_height, vo_screenwidth, vo_screenheight);