summaryrefslogtreecommitdiffstats
path: root/libvo/w32_common.c
diff options
context:
space:
mode:
authorreimar <reimar@b3059339-0415-0410-9bf9-f77b7e298cf2>2005-05-30 08:45:21 +0000
committerreimar <reimar@b3059339-0415-0410-9bf9-f77b7e298cf2>2005-05-30 08:45:21 +0000
commit881f0f083fa7c3888e178d137b2bfdf0168b0a9a (patch)
treefa41b0987dfdb5930d23631d78f6f02fa89208c3 /libvo/w32_common.c
parentcf4bdf89373c0c3fdbe27128dd45f178fd641ee4 (diff)
downloadmpv-881f0f083fa7c3888e178d137b2bfdf0168b0a9a.tar.bz2
mpv-881f0f083fa7c3888e178d137b2bfdf0168b0a9a.tar.xz
-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/w32_common.c')
-rw-r--r--libvo/w32_common.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libvo/w32_common.c b/libvo/w32_common.c
index 60e38d3555..c23afe679d 100644
--- a/libvo/w32_common.c
+++ b/libvo/w32_common.c
@@ -180,7 +180,7 @@ int createRenderingContext(void) {
updateScreenProperties();
vo_dwidth = vo_fs ? vo_screenwidth : o_dwidth;
vo_dheight = vo_fs ? vo_screenheight : o_dheight;
- SetWindowPos(vo_window, layer, (vo_screenwidth - vo_dwidth) / 2, (vo_screenheight - vo_dheight) / 2, vo_dwidth, vo_dheight, SWP_SHOWWINDOW);
+ SetWindowPos(vo_window, layer, vo_dx, vo_dy, vo_dwidth, vo_dheight, SWP_SHOWWINDOW);
PIXELFORMATDESCRIPTOR pfd;
memset(&pfd, 0, sizeof pfd);