summaryrefslogtreecommitdiffstats
path: root/libvo
diff options
context:
space:
mode:
authorreimar <reimar@b3059339-0415-0410-9bf9-f77b7e298cf2>2005-12-07 15:56:27 +0000
committerreimar <reimar@b3059339-0415-0410-9bf9-f77b7e298cf2>2005-12-07 15:56:27 +0000
commit2d065d1c6dacff7e40353c39986ee4023c292740 (patch)
treea7f1b03d1c5ee19249193d98b28405e497fc8354 /libvo
parent552a2eab0b869458b6b560c2c20f18e5c906c438 (diff)
downloadmpv-2d065d1c6dacff7e40353c39986ee4023c292740.tar.bz2
mpv-2d065d1c6dacff7e40353c39986ee4023c292740.tar.xz
signed division must be used for calculation vo_dx and vo_dy.
Fixes a bug that causes overbig windows to disappear on Windows. git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@17128 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'libvo')
-rw-r--r--libvo/vo_gl.c4
-rw-r--r--libvo/vo_gl2.c4
2 files changed, 4 insertions, 4 deletions
diff --git a/libvo/vo_gl.c b/libvo/vo_gl.c
index 1176439c90..8b3b99e6cd 100644
--- a/libvo/vo_gl.c
+++ b/libvo/vo_gl.c
@@ -308,8 +308,8 @@ config(uint32_t width, uint32_t height, uint32_t d_width, uint32_t d_height, uin
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 --git a/libvo/vo_gl2.c b/libvo/vo_gl2.c
index 102becc81f..0c744fd73e 100644
--- a/libvo/vo_gl2.c
+++ b/libvo/vo_gl2.c
@@ -820,8 +820,8 @@ config(uint32_t width, uint32_t height, uint32_t d_width, uint32_t d_height, uin
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);