Cleanup: confusing if statements & alignment

This commit is contained in:
Campbell Barton
2015-04-08 12:23:38 +10:00
parent ccfb9a96c3
commit 808ea6271a
7 changed files with 38 additions and 51 deletions

View File

@@ -714,8 +714,8 @@ GHOST_EventWheel *GHOST_SystemWin32::processWheelEvent(GHOST_WindowWin32 *window
// zDelta /= WHEEL_DELTA;
// temporary fix below: microsoft now has added more precision, making the above division not work
if (zDelta <= 0) zDelta = -1; else zDelta = 1;
zDelta = (zDelta <= 0) ? -1 : 1;
// short xPos = (short) LOWORD(lParam); // horizontal position of pointer
// short yPos = (short) HIWORD(lParam); // vertical position of pointer
return new GHOST_EventWheel(getSystem()->getMilliSeconds(), window, zDelta);