Fix fountain bug with more than 10 touches reported.
Change-Id: Ie4ddefbcbe6407fb7ffae2c6e2440fec0b974cfb
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user