Mercurial > mplayer.hg
diff libvo/w32_common.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 | d87cc822b343 |
children | 519a307e3ccf |
line wrap: on
line diff
--- a/libvo/w32_common.c Mon May 30 08:23:19 2005 +0000 +++ b/libvo/w32_common.c Mon May 30 08:45:21 2005 +0000 @@ -180,7 +180,7 @@ 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);