aboutsummaryrefslogtreecommitdiffhomepage
path: root/libvo/vo_gl.c
diff options
context:
space:
mode:
authorGravatar reimar <reimar@b3059339-0415-0410-9bf9-f77b7e298cf2>2005-05-30 08:45:21 +0000
committerGravatar reimar <reimar@b3059339-0415-0410-9bf9-f77b7e298cf2>2005-05-30 08:45:21 +0000
commit881f0f083fa7c3888e178d137b2bfdf0168b0a9a (patch)
treefa41b0987dfdb5930d23631d78f6f02fa89208c3 /libvo/vo_gl.c
parentcf4bdf89373c0c3fdbe27128dd45f178fd641ee4 (diff)
-geometry support for gl2 under win, default window pos centered for gl, gl2
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@15596 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'libvo/vo_gl.c')
-rw-r--r--libvo/vo_gl.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/libvo/vo_gl.c b/libvo/vo_gl.c
index b3e58b4052..35225e09b1 100644
--- a/libvo/vo_gl.c
+++ b/libvo/vo_gl.c
@@ -162,6 +162,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;
geometry(&vo_dx, &vo_dy, &d_width, &d_height,
vo_screenwidth, vo_screenheight);
#ifdef X11_FULLSCREEN