comparison libvo/vo_xvmc.c @ 27377:d58d06eafe83

Change a bunch of X11-specific preprocessor directives. Switch from a HAVE_ prefix to a CONFIG_ prefix.
author diego
date Mon, 04 Aug 2008 06:16:23 +0000
parents 5fe6a8adf569
children 7d8105fefe97
comparison
equal deleted inserted replaced
27376:d1192f8e7df4 27377:d58d06eafe83
36 #endif 36 #endif
37 37
38 #include "libavutil/common.h" 38 #include "libavutil/common.h"
39 39
40 //no chance for xinerama to be supported in the near future 40 //no chance for xinerama to be supported in the near future
41 #undef HAVE_XINERAMA 41 #undef CONFIG_XINERAMA
42 42
43 #undef NDEBUG 43 #undef NDEBUG
44 #include <assert.h> 44 #include <assert.h>
45 45
46 46
461 XGCValues xgcv; 461 XGCValues xgcv;
462 XSetWindowAttributes xswa; 462 XSetWindowAttributes xswa;
463 XWindowAttributes attribs; 463 XWindowAttributes attribs;
464 unsigned long xswamask; 464 unsigned long xswamask;
465 int depth; 465 int depth;
466 #ifdef HAVE_XF86VM 466 #ifdef CONFIG_XF86VM
467 int vm=0; 467 int vm=0;
468 unsigned int modeline_width, modeline_height; 468 unsigned int modeline_width, modeline_height;
469 static uint32_t vm_width; 469 static uint32_t vm_width;
470 static uint32_t vm_height; 470 static uint32_t vm_height;
471 #endif 471 #endif
639 639
640 skip_surface_allocation: 640 skip_surface_allocation:
641 641
642 vo_mouse_autohide = 1; 642 vo_mouse_autohide = 1;
643 643
644 #ifdef HAVE_XF86VM 644 #ifdef CONFIG_XF86VM
645 if( flags&VOFLAG_MODESWITCHING ) vm = 1; 645 if( flags&VOFLAG_MODESWITCHING ) vm = 1;
646 #endif 646 #endif
647 647
648 #ifdef CONFIG_GUI 648 #ifdef CONFIG_GUI
649 if(use_gui) 649 if(use_gui)
653 { 653 {
654 hint.x = vo_dx; 654 hint.x = vo_dx;
655 hint.y = vo_dy; 655 hint.y = vo_dy;
656 hint.width = d_width; 656 hint.width = d_width;
657 hint.height = d_height; 657 hint.height = d_height;
658 #ifdef HAVE_XF86VM 658 #ifdef CONFIG_XF86VM
659 if ( vm ) 659 if ( vm )
660 { 660 {
661 if ((d_width==0) && (d_height==0)) 661 if ((d_width==0) && (d_height==0))
662 { vm_width=image_width; vm_height=image_height; } 662 { vm_width=image_width; vm_height=image_height; }
663 else 663 else
705 XChangeWindowAttributes(mDisplay, vo_window, xswamask, &xswa); 705 XChangeWindowAttributes(mDisplay, vo_window, xswamask, &xswa);
706 706
707 if ( vo_gc != None ) XFreeGC( mDisplay,vo_gc ); 707 if ( vo_gc != None ) XFreeGC( mDisplay,vo_gc );
708 vo_gc = XCreateGC(mDisplay, vo_window, GCForeground, &xgcv); 708 vo_gc = XCreateGC(mDisplay, vo_window, GCForeground, &xgcv);
709 XSync(mDisplay, False); 709 XSync(mDisplay, False);
710 #ifdef HAVE_XF86VM 710 #ifdef CONFIG_XF86VM
711 if ( vm ) 711 if ( vm )
712 { 712 {
713 /* Grab the mouse pointer in our window */ 713 /* Grab the mouse pointer in our window */
714 if(vo_grabpointer) 714 if(vo_grabpointer)
715 XGrabPointer(mDisplay, vo_window, True, 0, 715 XGrabPointer(mDisplay, vo_window, True, 0,
1151 static void uninit(void){ 1151 static void uninit(void){
1152 if( mp_msg_test(MSGT_VO,MSGL_DBG4) ) { 1152 if( mp_msg_test(MSGT_VO,MSGL_DBG4) ) {
1153 printf("vo_xvmc: uninit called\n"); } 1153 printf("vo_xvmc: uninit called\n"); }
1154 xvmc_free(); 1154 xvmc_free();
1155 //from vo_xv 1155 //from vo_xv
1156 #ifdef HAVE_XF86VM 1156 #ifdef CONFIG_XF86VM
1157 vo_vm_close(mDisplay); 1157 vo_vm_close(mDisplay);
1158 #endif 1158 #endif
1159 vo_x11_uninit(); 1159 vo_x11_uninit();
1160 } 1160 }
1161 1161