diff options
| author | Keith Packard <keithp@keithp.com> | 2014-06-13 21:26:33 -0700 |
|---|---|---|
| committer | Keith Packard <keithp@keithp.com> | 2014-06-13 21:26:33 -0700 |
| commit | 9a6a3c34293eac6442f766e13ce148f595e891eb (patch) | |
| tree | 7a9b05e48f8aabc43260b377c6b7b3559cd75fbd /altosuilib/AltosUIMapPreload.java | |
| parent | 92895c87bc3d97bf4990f1feda0bd8b07da4c405 (diff) | |
altosuilib: Make map-cache per-window instead of global
This consumes more memory, but avoids cache conflicts between windows
Signed-off-by: Keith Packard <keithp@keithp.com>
Diffstat (limited to 'altosuilib/AltosUIMapPreload.java')
| -rw-r--r-- | altosuilib/AltosUIMapPreload.java | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/altosuilib/AltosUIMapPreload.java b/altosuilib/AltosUIMapPreload.java index d702dddf..3bdba39e 100644 --- a/altosuilib/AltosUIMapPreload.java +++ b/altosuilib/AltosUIMapPreload.java @@ -209,6 +209,7 @@ class AltosUISites extends Thread { public class AltosUIMapPreload extends AltosUIFrame implements ActionListener, ItemListener, AltosUIMapTileListener { AltosUIFrame owner; AltosUIMap map; + AltosUIMapCache cache = new AltosUIMapCache(); AltosUIMapPos lat; AltosUIMapPos lon; @@ -353,6 +354,8 @@ public class AltosUIMapPreload extends AltosUIFrame implements ActionListener, I } } + public AltosUIMapCache cache() { return cache; } + public void set_sites() { int i = 1; for (AltosUISite site : sites.sites) { |
