comparison libvo/vo_xmga.c @ 2039:452f3cb96b32

Make aware of new -fs calling.
author atmos4
date Mon, 01 Oct 2001 20:40:07 +0000
parents 6185fef2703a
children 378aed6b232d
comparison
equal deleted inserted replaced
2038:9b5b1484c74f 2039:452f3cb96b32
255 #endif 255 #endif
256 if ( mFullscreen ) 256 if ( mFullscreen )
257 { 257 {
258 wndWidth=vo_screenwidth; 258 wndWidth=vo_screenwidth;
259 wndHeight=vo_screenheight; 259 wndHeight=vo_screenheight;
260 #ifdef X11_FULLSCREEN
261 d_height=(int)((float)vo_screenwidth/(float)dwidth*(float)dheight);
262 d_height+=d_height%2; // round
263 d_width=vo_screenwidth;
264 if(dheight>vo_screenheight){
265 d_width=(int)((float)vo_screenheight/(float)dheight*(float)dwidth);
266 d_width+=d_width%2; // round
267 d_height=vo_screenheight;
268 }
269 dwidth=d_width; dheight=d_height;
270 #endif
260 } 271 }
261 272
262 XGetWindowAttributes( mDisplay,DefaultRootWindow( mDisplay ),&attribs ); 273 XGetWindowAttributes( mDisplay,DefaultRootWindow( mDisplay ),&attribs );
263 mDepth=attribs.depth; 274 mDepth=attribs.depth;
264 if ( mDepth != 15 && mDepth != 16 && mDepth != 24 && mDepth != 32 ) mDepth=24; 275 if ( mDepth != 15 && mDepth != 16 && mDepth != 24 && mDepth != 32 ) mDepth=24;