Commit d9cac7cd authored by Sam Hocevar's avatar Sam Hocevar

. re-changement de vout_sdl.c pour que �a fonctionne en woody.

parent 48b0c5ca
...@@ -120,6 +120,7 @@ void vout_SDLEnd( vout_thread_t *p_vout ) ...@@ -120,6 +120,7 @@ void vout_SDLEnd( vout_thread_t *p_vout )
{ {
SDL_UnlockSurface ( p_vout->p_sys->p_display ); SDL_UnlockSurface ( p_vout->p_sys->p_display );
} }
free( p_vout->p_sys );
} }
/***************************************************************************** /*****************************************************************************
...@@ -193,6 +194,7 @@ void vout_SDLDisplay( vout_thread_t *p_vout ) ...@@ -193,6 +194,7 @@ void vout_SDLDisplay( vout_thread_t *p_vout )
*****************************************************************************/ *****************************************************************************/
static int SDLOpenDisplay( vout_thread_t *p_vout, char *psz_display, void *p_data ) static int SDLOpenDisplay( vout_thread_t *p_vout, char *psz_display, void *p_data )
{ {
SDL_Rect clipping_rect;
/* Initialize library */ /* Initialize library */
if( SDL_Init(SDL_INIT_VIDEO) < 0 ) if( SDL_Init(SDL_INIT_VIDEO) < 0 )
...@@ -256,9 +258,11 @@ static int SDLOpenDisplay( vout_thread_t *p_vout, char *psz_display, void *p_dat ...@@ -256,9 +258,11 @@ static int SDLOpenDisplay( vout_thread_t *p_vout, char *psz_display, void *p_dat
*/ */
/* Set clipping for text */ /* Set clipping for text */
SDL_SetClipping(p_vout->p_sys->p_display, 0, 0, clipping_rect.x = 0;
p_vout->p_sys->p_display->w, clipping_rect.y = 0;
p_vout->p_sys->p_display->h); clipping_rect.w = p_vout->p_sys->p_display->w;
clipping_rect.h = p_vout->p_sys->p_display->h;
SDL_SetClipRect(p_vout->p_sys->p_display, &clipping_rect);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment