changeset 31046:93acb406a855

Minor cosmetics.
author reimar
date Sun, 25 Apr 2010 15:41:21 +0000
parents 56dea60de72c
children 745f9833930b
files libvo/sdl_common.c
diffstat 1 files changed, 9 insertions(+), 7 deletions(-) [+]
line wrap: on
line diff
--- a/libvo/sdl_common.c	Sun Apr 25 15:39:22 2010 +0000
+++ b/libvo/sdl_common.c	Sun Apr 25 15:41:21 2010 +0000
@@ -127,18 +127,18 @@
         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 @@
             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;
 }