From 07a9a495c8e980f6b5857c637febe3da38e0725b Mon Sep 17 00:00:00 2001 From: reimar Date: Sun, 25 Apr 2010 15:41:21 +0000 Subject: [PATCH] Minor cosmetics. git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@31088 b3059339-0415-0410-9bf9-f77b7e298cf2 --- libvo/sdl_common.c | 16 +++++++++------- 1 file changed, 9 insertions(+), 7 deletions(-) diff --git a/libvo/sdl_common.c b/libvo/sdl_common.c index ed895fd81f..66e1fd6f61 100644 --- a/libvo/sdl_common.c +++ b/libvo/sdl_common.c @@ -127,18 +127,18 @@ int sdl_default_handle_event(SDL_Event *event) vo_dwidth = event->resize.w; vo_dheight = event->resize.h; return VO_EVENT_RESIZE; + case SDL_VIDEOEXPOSE: return VO_EVENT_EXPOSE; + case SDL_MOUSEBUTTONDOWN: - if(vo_nomouse_input) - break; - mplayer_put_key((MOUSE_BTN0 + event->button.button - 1) | MP_KEY_DOWN); + if (!vo_nomouse_input) + mplayer_put_key((MOUSE_BTN0 + event->button.button - 1) | MP_KEY_DOWN); break; case SDL_MOUSEBUTTONUP: - if(vo_nomouse_input) - break; - mplayer_put_key(MOUSE_BTN0 + event->button.button - 1); + if(!vo_nomouse_input) + mplayer_put_key(MOUSE_BTN0 + event->button.button - 1); break; case SDL_KEYDOWN: @@ -151,7 +151,9 @@ int sdl_default_handle_event(SDL_Event *event) mplayer_put_key(mpkey); break; - case SDL_QUIT: mplayer_put_key(KEY_CLOSE_WIN);break; + case SDL_QUIT: + mplayer_put_key(KEY_CLOSE_WIN); + break; } return 0; }