faster searchTreeItem

This commit is contained in:
honfika@gmail.com
2015-03-18 10:32:51 +01:00
parent f00af7e09f
commit cdc22d8b2d
6 changed files with 94 additions and 5 deletions

View File

@@ -1103,7 +1103,7 @@ public class Helper {
private static int findRight(int[] imgData, int x, int y, int width) {
int result = x;
int idx = width * y + x;
while ((imgData[idx] >>> 24) > 0 && result < width) {
while (result < width && (imgData[idx] >>> 24) > 0) {
result++;
idx++;
}