Mercurial > mplayer.hg
diff libvo/vo_gl.c @ 15595:b4c3f02811dd
-geometry support for gl2 under win, default window pos centered for gl, gl2
author | reimar |
---|---|
date | Mon, 30 May 2005 08:45:21 +0000 |
parents | c3108031b78a |
children | e040252b8370 |
line wrap: on
line diff
--- a/libvo/vo_gl.c Mon May 30 08:23:19 2005 +0000 +++ b/libvo/vo_gl.c Mon May 30 08:45:21 2005 +0000 @@ -162,6 +162,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; geometry(&vo_dx, &vo_dy, &d_width, &d_height, vo_screenwidth, vo_screenheight); #ifdef X11_FULLSCREEN