don't use modulo

This commit is contained in:
Mitsuru Oshima
2009-05-07 17:02:27 -07:00
parent b1a7ffef3a
commit d4cc32ca99

View File

@@ -228,8 +228,10 @@ public final class MotionEvent implements Parcelable {
if (mHistory != null) {
float[] history = mHistory;
int length = history.length;
for (int i = 0; i < length; i++) {
for (int i = 0; i < length; i += 4) {
history[i] *= scale;
history[i + 2] *= scale;
history[i + 3] *= scale;
}
}
}