braces on barely-multiline if

This commit is contained in:
NeatNit 2018-10-06 14:51:21 +03:00
parent d3f518dc47
commit 4ffaf8c399

View file

@ -214,9 +214,10 @@ void EmuWindow_SDL2::PollEvents() {
case SDL_MOUSEBUTTONDOWN: case SDL_MOUSEBUTTONDOWN:
case SDL_MOUSEBUTTONUP: case SDL_MOUSEBUTTONUP:
// ignore if it came from touch // ignore if it came from touch
if (event.button.which != SDL_TOUCH_MOUSEID) if (event.button.which != SDL_TOUCH_MOUSEID) {
OnMouseButton(event.button.button, event.button.state, event.button.x, OnMouseButton(event.button.button, event.button.state, event.button.x,
event.button.y); event.button.y);
}
break; break;
case SDL_FINGERDOWN: case SDL_FINGERDOWN:
OnFingerDown(event.tfinger.fingerId, event.tfinger.x, event.tfinger.y); OnFingerDown(event.tfinger.fingerId, event.tfinger.x, event.tfinger.y);