aboutsummaryrefslogtreecommitdiffstats
path: root/mapsforge_patches
diff options
context:
space:
mode:
Diffstat (limited to 'mapsforge_patches')
-rw-r--r--mapsforge_patches/InMemoryTileCache.java.patch11
1 files changed, 11 insertions, 0 deletions
diff --git a/mapsforge_patches/InMemoryTileCache.java.patch b/mapsforge_patches/InMemoryTileCache.java.patch
new file mode 100644
index 0000000..656bbe9
--- /dev/null
+++ b/mapsforge_patches/InMemoryTileCache.java.patch
@@ -0,0 +1,11 @@
+--- trunk/mapsforge-map/src/main/java/org/mapsforge/android/maps/mapgenerator/InMemoryTileCache.java
++++ trunk/mapsforge-map/src/main/java/org/mapsforge/android/maps/mapgenerator/InMemoryTileCache.java
+@@ -138,7 +138,7 @@
+ }
+
+ Bitmap pooledBitmap = this.bitmapPool.remove(this.bitmapPool.size() - 1);
+-
++ this.byteBuffer.rewind();
+ bitmap.copyPixelsToBuffer(this.byteBuffer);
+ this.byteBuffer.rewind();
+ pooledBitmap.copyPixelsFromBuffer(this.byteBuffer);