[MPlayer-cvslog] CVS: main/libvo vo_gl.c, 1.111, 1.112 vo_gl2.c, 1.84, 1.85

Reimar Döffinger CVS syncmail at mplayerhq.hu
Wed Dec 7 16:56:29 CET 2005


CVS change done by Reimar Döffinger CVS

Update of /cvsroot/mplayer/main/libvo
In directory mail:/var2/tmp/cvs-serv6111

Modified Files:
	vo_gl.c vo_gl2.c 
Log Message:
signed division must be used for calculation vo_dx and vo_dy.
Fixes a bug that causes overbig windows to disappear on Windows.


Index: vo_gl.c
===================================================================
RCS file: /cvsroot/mplayer/main/libvo/vo_gl.c,v
retrieving revision 1.111
retrieving revision 1.112
diff -u -r1.111 -r1.112
--- vo_gl.c	6 Dec 2005 22:35:54 -0000	1.111
+++ vo_gl.c	7 Dec 2005 15:56:27 -0000	1.112
@@ -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

Index: vo_gl2.c
===================================================================
RCS file: /cvsroot/mplayer/main/libvo/vo_gl2.c,v
retrieving revision 1.84
retrieving revision 1.85
diff -u -r1.84 -r1.85
--- vo_gl2.c	6 Dec 2005 22:23:06 -0000	1.84
+++ vo_gl2.c	7 Dec 2005 15:56:27 -0000	1.85
@@ -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);
 




More information about the MPlayer-cvslog mailing list