]> gitweb.fperrin.net Git - GpsPrune.git/blobdiff - src/tim/prune/save/MapGrouter.java
Version 20.1, December 2020
[GpsPrune.git] / src / tim / prune / save / MapGrouter.java
index 263a3067f4902b5916c2b5e43d63bfeccdb21c5c..28b65ea0dddacd1b731eda3fdc9e7f8b80b5b7c4 100644 (file)
@@ -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
+       }
 }