X-Git-Url: http://gitweb.fperrin.net/?p=GpsPrune.git;a=blobdiff_plain;f=src%2Ftim%2Fprune%2Fsave%2FMapGrouter.java;h=28b65ea0dddacd1b731eda3fdc9e7f8b80b5b7c4;hp=263a3067f4902b5916c2b5e43d63bfeccdb21c5c;hb=38a0c12649e9104d0d40ce93a932b9086011f8c8;hpb=8b20e3e027058cdf6ff52993ee5576193d08667a 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 + } }