# HG changeset patch # User reimar # Date 1133970987 0 # Node ID f650267ecc3aea60c7e5a0e8503796ea25fd5a32 # Parent e5f2f50744cd90d8de665f65cc327c0e6f9e8517 signed division must be used for calculation vo_dx and vo_dy. Fixes a bug that causes overbig windows to disappear on Windows. diff -r e5f2f50744cd -r f650267ecc3a libvo/vo_gl.c --- 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 diff -r e5f2f50744cd -r f650267ecc3a libvo/vo_gl2.c --- 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);