mirror of
https://github.com/mpv-player/mpv
synced 2024-12-14 19:05:33 +00:00
Minor cosmetics.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@31088 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
parent
f189c8286a
commit
07a9a495c8
@ -127,17 +127,17 @@ int sdl_default_handle_event(SDL_Event *event)
|
|||||||
vo_dwidth = event->resize.w;
|
vo_dwidth = event->resize.w;
|
||||||
vo_dheight = event->resize.h;
|
vo_dheight = event->resize.h;
|
||||||
return VO_EVENT_RESIZE;
|
return VO_EVENT_RESIZE;
|
||||||
|
|
||||||
case SDL_VIDEOEXPOSE:
|
case SDL_VIDEOEXPOSE:
|
||||||
return VO_EVENT_EXPOSE;
|
return VO_EVENT_EXPOSE;
|
||||||
|
|
||||||
case SDL_MOUSEBUTTONDOWN:
|
case SDL_MOUSEBUTTONDOWN:
|
||||||
if(vo_nomouse_input)
|
if (!vo_nomouse_input)
|
||||||
break;
|
|
||||||
mplayer_put_key((MOUSE_BTN0 + event->button.button - 1) | MP_KEY_DOWN);
|
mplayer_put_key((MOUSE_BTN0 + event->button.button - 1) | MP_KEY_DOWN);
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case SDL_MOUSEBUTTONUP:
|
case SDL_MOUSEBUTTONUP:
|
||||||
if(vo_nomouse_input)
|
if(!vo_nomouse_input)
|
||||||
break;
|
|
||||||
mplayer_put_key(MOUSE_BTN0 + event->button.button - 1);
|
mplayer_put_key(MOUSE_BTN0 + event->button.button - 1);
|
||||||
break;
|
break;
|
||||||
|
|
||||||
@ -151,7 +151,9 @@ int sdl_default_handle_event(SDL_Event *event)
|
|||||||
mplayer_put_key(mpkey);
|
mplayer_put_key(mpkey);
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case SDL_QUIT: mplayer_put_key(KEY_CLOSE_WIN);break;
|
case SDL_QUIT:
|
||||||
|
mplayer_put_key(KEY_CLOSE_WIN);
|
||||||
|
break;
|
||||||
}
|
}
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user