Coding style fixes.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@38539 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
parent
e80276e2d7
commit
45f82fe6d0
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user