[MPlayer-cvslog] r31088 - trunk/libvo/sdl_common.c
reimar
subversion at mplayerhq.hu
Sun Apr 25 17:41:21 CEST 2010
Author: reimar
Date: Sun Apr 25 17:41:21 2010
New Revision: 31088
Log:
Minor cosmetics.
Modified:
trunk/libvo/sdl_common.c
Modified: trunk/libvo/sdl_common.c
==============================================================================
--- trunk/libvo/sdl_common.c Sun Apr 25 17:39:22 2010 (r31087)
+++ trunk/libvo/sdl_common.c Sun Apr 25 17:41:21 2010 (r31088)
@@ -127,18 +127,18 @@ int sdl_default_handle_event(SDL_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 *
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;
}
More information about the MPlayer-cvslog
mailing list