aboutsummaryrefslogtreecommitdiffstats
path: root/mapsforge_patches/InMemoryTileCache.java.patch
blob: 656bbe937d315070608aefcc364411e4dd17e04d (plain)
1
2
3
4
5
6
7
8
9
10
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);