diff options
| author | 2010-11-09 14:20:34 -0800 | |
|---|---|---|
| committer | 2010-11-09 14:20:34 -0800 | |
| commit | 641b0628cd9d8be001fa445771d460b47ba1f6cb (patch) | |
| tree | 8edd4be6634813d68b00ca6827ea4e1d9edc4312 | |
| parent | 1c41517124a90fcfdb95dc069fc492c6fcf1ff25 (diff) | |
Fix fountain bug with more than 10 touches reported.
Change-Id: Ie4ddefbcbe6407fb7ffae2c6e2440fec0b974cfb
| -rw-r--r-- | libs/rs/java/Fountain/src/com/android/fountain/FountainRS.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libs/rs/java/Fountain/src/com/android/fountain/FountainRS.java b/libs/rs/java/Fountain/src/com/android/fountain/FountainRS.java index eb46e950318d..0afff34f3c61 100644 --- a/libs/rs/java/Fountain/src/com/android/fountain/FountainRS.java +++ b/libs/rs/java/Fountain/src/com/android/fountain/FountainRS.java @@ -53,7 +53,7 @@ public class FountainRS { boolean holdingColor[] = new boolean[10]; public void newTouchPosition(float x, float y, float pressure, int id) { - if (id > holdingColor.length) { + if (id >= holdingColor.length) { return; } int rate = (int)(pressure * pressure * 500.f); |