diff options
author | reimar <reimar@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2010-04-25 15:41:21 +0000 |
---|---|---|
committer | reimar <reimar@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2010-04-25 15:41:21 +0000 |
commit | 07a9a495c8e980f6b5857c637febe3da38e0725b (patch) | |
tree | 40572a4a545b5ad31397cc70344f93fe6a71fc7d /libvo | |
parent | f189c8286ad94c61fb232dd1bfcfe7adde8ede64 (diff) | |
download | mpv-07a9a495c8e980f6b5857c637febe3da38e0725b.tar.bz2 mpv-07a9a495c8e980f6b5857c637febe3da38e0725b.tar.xz |
Minor cosmetics.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@31088 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'libvo')
-rw-r--r-- | libvo/sdl_common.c | 16 |
1 files 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; } |