comparison 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
comparison
equal deleted inserted replaced
15594:1c18214c932b 15595:b4c3f02811dd
160 aspect_save_orig(width,height); 160 aspect_save_orig(width,height);
161 aspect_save_prescale(d_width,d_height); 161 aspect_save_prescale(d_width,d_height);
162 aspect_save_screenres(vo_screenwidth,vo_screenheight); 162 aspect_save_screenres(vo_screenwidth,vo_screenheight);
163 163
164 aspect(&d_width,&d_height,A_NOZOOM); 164 aspect(&d_width,&d_height,A_NOZOOM);
165 vo_dx = (vo_screenwidth - d_width) / 2;
166 vo_dy = (vo_screenheight - d_height) / 2;
165 geometry(&vo_dx, &vo_dy, &d_width, &d_height, 167 geometry(&vo_dx, &vo_dy, &d_width, &d_height,
166 vo_screenwidth, vo_screenheight); 168 vo_screenwidth, vo_screenheight);
167 #ifdef X11_FULLSCREEN 169 #ifdef X11_FULLSCREEN
168 // if( flags&VOFLAG_FULLSCREEN ){ // (-fs) 170 // if( flags&VOFLAG_FULLSCREEN ){ // (-fs)
169 // aspect(&d_width,&d_height,A_ZOOM); 171 // aspect(&d_width,&d_height,A_ZOOM);