comparison libvo/vo_xmga.c @ 5823:daa705aff4f3

-rootwin fix...
author arpi
date Wed, 24 Apr 2002 23:15:17 +0000
parents b8d8d72776f2
children 104fce2b92b6
comparison
equal deleted inserted replaced
5822:8e3251d0d9a6 5823:daa705aff4f3
276 if ( mDepth != 15 && mDepth != 16 && mDepth != 24 && mDepth != 32 ) mDepth=24; 276 if ( mDepth != 15 && mDepth != 16 && mDepth != 24 && mDepth != 32 ) mDepth=24;
277 XMatchVisualInfo( mDisplay,mScreen,mDepth,TrueColor,&vinfo ); 277 XMatchVisualInfo( mDisplay,mScreen,mDepth,TrueColor,&vinfo );
278 xWAttribs.colormap=XCreateColormap( mDisplay,RootWindow( mDisplay,mScreen ),vinfo.visual,AllocNone ); 278 xWAttribs.colormap=XCreateColormap( mDisplay,RootWindow( mDisplay,mScreen ),vinfo.visual,AllocNone );
279 xWAttribs.background_pixel=0; 279 xWAttribs.background_pixel=0;
280 xWAttribs.border_pixel=0; 280 xWAttribs.border_pixel=0;
281 xWAttribs.event_mask=StructureNotifyMask | ExposureMask | KeyPressMask | ButtonPressMask | ButtonReleaseMask | PointerMotionMask; 281 xWAttribs.event_mask=StructureNotifyMask | ExposureMask | KeyPressMask |
282 ((WinID==0)?0:(ButtonPressMask | ButtonReleaseMask | PointerMotionMask));
282 xswamask=CWBackPixel | CWBorderPixel | CWColormap | CWEventMask; 283 xswamask=CWBackPixel | CWBorderPixel | CWColormap | CWEventMask;
283 284
284 if ( WinID>=0 ){ 285 if ( WinID>=0 ){
285 vo_window = WinID ? ((Window)WinID) : RootWindow(mDisplay,mScreen); 286 vo_window = WinID ? ((Window)WinID) : RootWindow(mDisplay,mScreen);
286 XUnmapWindow( mDisplay,vo_window ); 287 XUnmapWindow( mDisplay,vo_window );