comparison 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
comparison
equal deleted inserted replaced
15594:1c18214c932b 15595:b4c3f02811dd
178 } 178 }
179 } 179 }
180 updateScreenProperties(); 180 updateScreenProperties();
181 vo_dwidth = vo_fs ? vo_screenwidth : o_dwidth; 181 vo_dwidth = vo_fs ? vo_screenwidth : o_dwidth;
182 vo_dheight = vo_fs ? vo_screenheight : o_dheight; 182 vo_dheight = vo_fs ? vo_screenheight : o_dheight;
183 SetWindowPos(vo_window, layer, (vo_screenwidth - vo_dwidth) / 2, (vo_screenheight - vo_dheight) / 2, vo_dwidth, vo_dheight, SWP_SHOWWINDOW); 183 SetWindowPos(vo_window, layer, vo_dx, vo_dy, vo_dwidth, vo_dheight, SWP_SHOWWINDOW);
184 184
185 PIXELFORMATDESCRIPTOR pfd; 185 PIXELFORMATDESCRIPTOR pfd;
186 memset(&pfd, 0, sizeof pfd); 186 memset(&pfd, 0, sizeof pfd);
187 pfd.nSize = sizeof pfd; 187 pfd.nSize = sizeof pfd;
188 pfd.nVersion = 1; 188 pfd.nVersion = 1;