Mercurial > mplayer.hg
changeset 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 | e5f2f50744cd |
children | 34f870d8e8a8 |
files | libvo/vo_gl.c libvo/vo_gl2.c |
diffstat | 2 files changed, 4 insertions(+), 4 deletions(-) [+] |
line wrap: on
line diff
--- a/libvo/vo_gl.c Wed Dec 07 15:53:02 2005 +0000 +++ b/libvo/vo_gl.c Wed Dec 07 15:56:27 2005 +0000 @@ -308,8 +308,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); #ifdef HAVE_NEW_GUI
--- 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);