From d1abb9c4b3280dc3592470f3bda83aaecc240c97 Mon Sep 17 00:00:00 2001 From: pontscho Date: Wed, 21 Nov 2001 18:40:59 +0000 Subject: [PATCH] remove dga support git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@3056 b3059339-0415-0410-9bf9-f77b7e298cf2 --- Gui/wm/ws.c | 20 -------------------- 1 file changed, 20 deletions(-) diff --git a/Gui/wm/ws.c b/Gui/wm/ws.c index 6446b75cea..021a4a7fe7 100644 --- a/Gui/wm/ws.c +++ b/Gui/wm/ws.c @@ -27,9 +27,6 @@ #ifdef HAVE_XSHAPE #include #endif -#ifdef HAVE_DGA2 -#include -#endif #include #include @@ -71,7 +68,6 @@ int wsWLCount = 0; unsigned long wsKeyTable[512]; int wsUseXShm = 1; -int wsUseDGA = 1; int wsUseXShape = 1; int XShmGetEventBase( Display* ); @@ -215,15 +211,6 @@ if(mDisplay){ fprintf( stderr,"[ws] sorry, your system is not supported X shared memory extension.\n" ); wsUseXShm=0; } -#ifdef HAVE_DGA2 - if ( !XDGAQueryExtension( wsDisplay,&eventbase,&errorbase ) ) - { - fprintf( stderr,"[ws] sorry, your system is not supported DGA extension.\n" ); - wsUseDGA=0; - } -#else - wsUseDGA=0; -#endif #ifdef HAVE_XSHAPE if ( !XShapeQueryExtension( wsDisplay,&eventbase,&errorbase ) ) { @@ -255,11 +242,6 @@ if(mDisplay){ XShmQueryVersion( wsDisplay,&major,&minor,&shp ); fprintf( stderr,"[ws] XShm version is %d.%d\n",major,minor ); } -// if ( wsUseDGA ) -// { -// XDGAQueryVersion( wsDisplay,&major,&minor ); -// fprintf( stderr,"[ws] DGA version is %d.%d\n",major,minor ); -// } #ifdef HAVE_XSHAPE if ( wsUseXShape ) { @@ -1064,8 +1046,6 @@ int wsGetDepthOnScreen( void ) void wsXDone( void ) { -// if ( wsSwitchedAnotherVideoMode ) wsChangeVideoMode( wsOldXResolution,wsOldYResolution ); -// if ( wsUseDGA ) XF86DGADirectVideo( wsDisplay,wsScreen,0 ); XCloseDisplay( wsDisplay ); }