comparison libvo/vo_xmga.c @ 5651:b8d8d72776f2

fix playlist bug with gui and rewrite mousecursor show/hide code
author pontscho
date Tue, 16 Apr 2002 17:41:29 +0000
parents d596cf3c54aa
children daa705aff4f3
comparison
equal deleted inserted replaced
5650:71f221e98fa4 5651:b8d8d72776f2
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; 281 xWAttribs.event_mask=StructureNotifyMask | ExposureMask | KeyPressMask | ButtonPressMask | ButtonReleaseMask | PointerMotionMask;
282 xswamask=CWBackPixel | CWBorderPixel | CWColormap | CWEventMask; 282 xswamask=CWBackPixel | CWBorderPixel | CWColormap | CWEventMask;
283 283
284 if ( WinID>=0 ){ 284 if ( WinID>=0 ){
285 vo_window = WinID ? ((Window)WinID) : RootWindow(mDisplay,mScreen); 285 vo_window = WinID ? ((Window)WinID) : RootWindow(mDisplay,mScreen);
286 XUnmapWindow( mDisplay,vo_window ); 286 XUnmapWindow( mDisplay,vo_window );
339 static void 339 static void
340 uninit(void) 340 uninit(void)
341 { 341 {
342 if(!inited) return; 342 if(!inited) return;
343 inited=0; 343 inited=0;
344 XSetBackground( mDisplay,vo_gc,0 );
345 XClearWindow( mDisplay,vo_window );
344 mga_uninit(); 346 mga_uninit();
345 saver_on(mDisplay); 347 saver_on(mDisplay);
346 vo_x11_uninit(mDisplay, vo_window); 348 vo_x11_uninit(mDisplay, vo_window);
347 printf("vo: uninit!\n"); 349 printf("vo: uninit!\n");
348 } 350 }