From 420ec3aac36002aa56f10f980f2127d5925062c1 Mon Sep 17 00:00:00 2001 From: Renaud Dartus Date: Mon, 15 Jan 2001 12:42:58 +0000 Subject: [PATCH] * Fixed close button support in SDL * Fixed --width and --height support in SDL --- plugins/sdl/intf_sdl.c | 7 ++----- plugins/sdl/vout_sdl.c | 7 +++++-- 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/plugins/sdl/intf_sdl.c b/plugins/sdl/intf_sdl.c index e1124962bf..70c6df8609 100644 --- a/plugins/sdl/intf_sdl.c +++ b/plugins/sdl/intf_sdl.c @@ -2,7 +2,7 @@ * intf_sdl.c: SDL interface plugin ***************************************************************************** * Copyright (C) 1999, 2000 VideoLAN - * $Id: intf_sdl.c,v 1.22 2001/01/15 06:18:23 sam Exp $ + * $Id: intf_sdl.c,v 1.23 2001/01/15 12:42:57 reno Exp $ * * Authors: * @@ -156,7 +156,7 @@ void intf_SDLManage( intf_thread_t *p_intf ) } break; case SDL_QUIT: - intf_ProcessKey( p_intf, INTF_KEY_QUIT ); + intf_ProcessKey( p_intf, SDLK_q ); break; default: break; @@ -189,9 +189,6 @@ void intf_SDL_Fullscreen(intf_thread_t * p_intf) p_intf->p_vout->p_sys->b_toggle_fullscreen = 1; vlc_mutex_unlock( &p_intf->p_vout->change_lock ); } - - - void intf_SDL_Keymap(intf_thread_t * p_intf ) { diff --git a/plugins/sdl/vout_sdl.c b/plugins/sdl/vout_sdl.c index ccc17de36d..0b534e2eec 100644 --- a/plugins/sdl/vout_sdl.c +++ b/plugins/sdl/vout_sdl.c @@ -41,6 +41,7 @@ #include "video_output.h" #include "intf_msg.h" +#include "main.h" /***************************************************************************** * vout_sys_t: video output SDL method descriptor @@ -112,8 +113,10 @@ int vout_SDLCreate( vout_thread_t *p_vout, char *psz_display, p_vout->p_sys->b_fullscreen = 0; } - p_vout->p_sys->i_width = VOUT_WIDTH_DEFAULT; - p_vout->p_sys->i_height = VOUT_HEIGHT_DEFAULT; + p_vout->p_sys->i_width = main_GetIntVariable( VOUT_WIDTH_VAR, + VOUT_WIDTH_DEFAULT ); + p_vout->p_sys->i_height = main_GetIntVariable( VOUT_HEIGHT_VAR, + VOUT_HEIGHT_DEFAULT ); if( SDLOpenDisplay(p_vout) ) { -- 2.39.5