]> git.sesse.net Git - vlc/commitdiff
Remove Xsp
authorRémi Denis-Courmont <remi@remlab.net>
Sun, 29 Nov 2009 21:58:20 +0000 (23:58 +0200)
committerRémi Denis-Courmont <remi@remlab.net>
Sun, 29 Nov 2009 22:01:35 +0000 (00:01 +0200)
We don't use GLX with Xomap (rather XV or X11)

configure.ac
modules/video_output/x11/xcommon.c
modules/video_output/x11/xcommon.h

index 1d56d5ff200dd8c80ab42cc54709a040f819e3d3..8ccd78fed667a270c7592ac6201307d27f57166d 100644 (file)
@@ -5084,12 +5084,6 @@ fi
 AC_LANG_POP(C++)
 AM_CONDITIONAL(BUILD_MOZILLA,${mozilla})
 
-dnl Tests for Xsp
-AC_CHECK_LIB(Xsp, XSPSetPixelDoubling,[
-  VLC_ADD_CPPFLAGS([glx],[-DHAVE_XSP])
-  VLC_ADD_LIBS([glx],[-lXsp])
-])
-
 dnl
 dnl  test plugins
 dnl
index 452909aa3d355f40db868ca05564f58224f34708..0dd87b4682406c126fa37fb407dc6eaff2c56d7f 100644 (file)
 #   include <sys/ipc.h>
 #endif
 
-#ifdef HAVE_XSP
-#include <X11/extensions/Xsp.h>
-#endif
-
 #include <X11/Xlib.h>
 #include <X11/Xproto.h>
 #include <X11/Xmd.h>
@@ -85,13 +81,6 @@ static void ToggleCursor   ( vout_thread_t * );
 
 static int X11ErrorHandler( Display *, XErrorEvent * );
 
-#ifdef HAVE_XSP
-static void EnablePixelDoubling( vout_thread_t *p_vout );
-static void DisablePixelDoubling( vout_thread_t *p_vout );
-#endif
-
-
-
 /*****************************************************************************
  * Activate: allocate X11 video thread output method
  *****************************************************************************
@@ -208,10 +197,6 @@ int Activate ( vlc_object_t *p_this )
     /* Misc init */
     p_vout->p_sys->i_time_button_last_pressed = 0;
 
-#ifdef HAVE_XSP
-    p_vout->p_sys->i_hw_scale = 1;
-#endif
-
     /* Variable to indicate if the window should be on top of others */
     /* Trigger a callback right now */
     var_TriggerCallback( p_vout, "video-on-top" );
@@ -234,10 +219,6 @@ void Deactivate ( vlc_object_t *p_this )
         ToggleCursor( p_vout );
     }
 
-#ifdef HAVE_XSP
-    DisablePixelDoubling(p_vout);
-#endif
-
     DestroyCursor( p_vout );
     EnableXScreenSaver( p_vout );
     DestroyWindow( p_vout, &p_vout->p_sys->window );
@@ -247,40 +228,6 @@ void Deactivate ( vlc_object_t *p_this )
     free( p_vout->p_sys );
 }
 
-#ifdef HAVE_XSP
-/*****************************************************************************
- * EnablePixelDoubling: Enables pixel doubling
- *****************************************************************************
- * Checks if the double size image fits in current window, and enables pixel
- * doubling accordingly. The i_hw_scale is the integer scaling factor.
- *****************************************************************************/
-static void EnablePixelDoubling( vout_thread_t *p_vout )
-{
-    int i_hor_scale = ( p_vout->p_sys->window.i_width ) / p_vout->render.i_width;
-    int i_vert_scale =  ( p_vout->p_sys->window.i_height ) / p_vout->render.i_height;
-    if ( ( i_hor_scale > 1 ) && ( i_vert_scale > 1 ) ) {
-        p_vout->p_sys->i_hw_scale = 2;
-        msg_Dbg( p_vout, "Enabling pixel doubling, scaling factor %d", p_vout->p_sys->i_hw_scale );
-        XSPSetPixelDoubling( p_vout->p_sys->p_display, 0, 1 );
-    }
-}
-
-/*****************************************************************************
- * DisablePixelDoubling: Disables pixel doubling
- *****************************************************************************
- * The scaling factor i_hw_scale is reset to the no-scaling value 1.
- *****************************************************************************/
-static void DisablePixelDoubling( vout_thread_t *p_vout )
-{
-    if ( p_vout->p_sys->i_hw_scale > 1 ) {
-        msg_Dbg( p_vout, "Disabling pixel doubling" );
-        XSPSetPixelDoubling( p_vout->p_sys->p_display, 0, 0 );
-        p_vout->p_sys->i_hw_scale = 1;
-    }
-}
-#endif
-
-
 /*****************************************************************************
  * ManageVideo: handle X11 events
  *****************************************************************************
@@ -798,13 +745,6 @@ static void ToggleFullScreen ( vout_thread_t *p_vout )
     p_vout->b_fullscreen = !p_vout->b_fullscreen;
     vout_window_SetFullScreen( p_vout->p_sys->window.owner_window,
                                p_vout->b_fullscreen );
-
-#ifdef HAVE_XSP
-    if( p_vout->b_fullscreen )
-        EnablePixelDoubling( p_vout );
-    else
-        DisablePixelDoubling( p_vout );
-#endif
 }
 
 /*****************************************************************************
index c6736350d1bb404302920e24f04516404d975681..793bd07e619f527e0bcf035c5ebc08a951cd2145 100644 (file)
@@ -89,10 +89,6 @@ struct vout_sys_t
     GLXContext          gwctx;
     GLXWindow           gwnd;
 #endif
-
-#ifdef HAVE_XSP
-    int                 i_hw_scale;
-#endif
 };
 
 /*****************************************************************************