Coding style fixes.

git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@38539 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Stephan Aßmus 2010-09-06 09:15:31 +00:00
parent e80276e2d7
commit 45f82fe6d0

View File

@ -753,10 +753,14 @@ MainWin::MessageReceived(BMessage* msg)
float dx = msg->FindFloat("be:wheel_delta_x");
float dy = msg->FindFloat("be:wheel_delta_y");
bool inv = modifiers() & B_COMMAND_KEY;
if (dx > 0.1) PostMessage(inv ? M_VOLUME_DOWN : M_SKIP_PREV);
if (dx < -0.1) PostMessage(inv ? M_VOLUME_UP : M_SKIP_NEXT);
if (dy > 0.1) PostMessage(inv ? M_SKIP_PREV : M_VOLUME_DOWN);
if (dy < -0.1) PostMessage(inv ? M_SKIP_NEXT : M_VOLUME_UP);
if (dx > 0.1)
PostMessage(inv ? M_VOLUME_DOWN : M_SKIP_PREV);
if (dx < -0.1)
PostMessage(inv ? M_VOLUME_UP : M_SKIP_NEXT);
if (dy > 0.1)
PostMessage(inv ? M_SKIP_PREV : M_VOLUME_DOWN);
if (dy < -0.1)
PostMessage(inv ? M_SKIP_NEXT : M_VOLUME_UP);
break;
}