From febe8817974d111227e49b36d64c7a3a2d9bb743 Mon Sep 17 00:00:00 2001 From: al3x Date: Tue, 12 Jun 2001 14:09:25 +0000 Subject: [PATCH] -Wall like cleanup git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@1111 b3059339-0415-0410-9bf9-f77b7e298cf2 --- libvo/vo_sdl.c | 4 +++- libvo/vo_x11.c | 9 ++++----- 2 files changed, 7 insertions(+), 6 deletions(-) diff --git a/libvo/vo_sdl.c b/libvo/vo_sdl.c index e0fd9c4dc0..1617bd176a 100644 --- a/libvo/vo_sdl.c +++ b/libvo/vo_sdl.c @@ -595,7 +595,6 @@ static uint32_t init(uint32_t width, uint32_t height, uint32_t d_width, uint32_t d_height, uint32_t flags, char *title, uint32_t format) //static int sdl_setup (int width, int height) { - int ret; struct sdl_priv_s *priv = &sdl_priv; unsigned int sdl_format; SDL_Rect res; @@ -1052,6 +1051,9 @@ static void check_events (void) case SDLK_SLASH: case SDLK_KP_DIVIDE: case SDLK_s: mplayer_put_key('/');break; + default: + mplayer_put_key(keypressed); + break; } break; case SDL_KEYUP: diff --git a/libvo/vo_x11.c b/libvo/vo_x11.c index 39d8e67f91..82567ecab9 100644 --- a/libvo/vo_x11.c +++ b/libvo/vo_x11.c @@ -110,14 +110,14 @@ static uint32_t image_height; static uint32_t image_format; static void check_events(){ - int e=vo_x11_check_events(mDisplay); + vo_x11_check_events(mDisplay); } static uint32_t init( uint32_t width,uint32_t height,uint32_t d_width,uint32_t d_height,uint32_t flags,char *title,uint32_t format ) { - int screen; +// int screen; int fullscreen=0; - int interval, prefer_blank, allow_exp, nothing; +// int interval, prefer_blank, allow_exp, nothing; unsigned int fg,bg; char *hello=( title == NULL ) ? "X11 render" : title; // char *name=":0.0"; @@ -148,7 +148,7 @@ static uint32_t init( uint32_t width,uint32_t height,uint32_t d_width,uint32_t d if (fullscreen) { unsigned int modeline_width, modeline_height, vm_event, vm_error; unsigned int vm_ver, vm_rev; - int i,j,k,have_vm=0,X,Y; + int i,j,have_vm=0,X,Y; int modecount; @@ -419,7 +419,6 @@ static uint32_t draw_slice( uint8_t *src[],int stride[],int w,int h,int x,int y void rgb15to16_mmx( char* s0,char* d0,int count ); static uint32_t draw_frame( uint8_t *src[] ){ - int i; int sbpp=( ( image_format&0xFF )+7 )/8; int dbpp=( bpp+7 )/8; char *d=ImageData;