X-Git-Url: https://gitweb.fperrin.net/?a=blobdiff_plain;f=src%2Ftim%2Fprune%2Fsave%2FMapGrouter.java;h=28b65ea0dddacd1b731eda3fdc9e7f8b80b5b7c4;hb=HEAD;hp=263a3067f4902b5916c2b5e43d63bfeccdb21c5c;hpb=ce6f2161b8596f7018d6a76bff79bc9e571f35fd;p=GpsPrune.git diff --git a/src/tim/prune/save/MapGrouter.java b/src/tim/prune/save/MapGrouter.java index 263a306..28b65ea 100644 --- a/src/tim/prune/save/MapGrouter.java +++ b/src/tim/prune/save/MapGrouter.java @@ -108,14 +108,11 @@ public class MapGrouter implements TileConsumer // Wait until tile is available (loaded asynchronously) while (tile.getWidth(null) < 0 && !inDownload) { - // System.out.println("Wait for tile width"); try { - Thread.sleep(inDownload ? 500 : 100); + Thread.sleep(100); } catch (InterruptedException ie) {} } - // work out where to copy it to, paint it - // System.out.println("Painting tile " + x + "," + y + " at " + xOffset + "," + yOffset); numTilesUsed++; g.drawImage(tile, xOffset, yOffset, null); } @@ -177,4 +174,10 @@ public class MapGrouter implements TileConsumer { // Doesn't need any action } + + /** React to cache problem */ + public void reportCacheFailure() + { + // Doesn't need any action + } }