Switch to ARGB_8888
This commit is contained in:
parent
9a309eadbe
commit
0dd4adb3a3
2 changed files with 2 additions and 2 deletions
|
@ -770,7 +770,7 @@ public class MapRenderRepositories {
|
|||
this.prevBmp = this.bmp;
|
||||
this.prevBmpLocation = this.bmpLocation;
|
||||
// necessary for transparent, otherwise 2 times smaller
|
||||
Config cfg = transparent ? Config.ARGB_8888 : Config.RGB_565;
|
||||
Config cfg = true ? Config.ARGB_8888 : Config.RGB_565;
|
||||
if (reuse != null && reuse.getWidth() == currentRenderingContext.width && reuse.getHeight() == currentRenderingContext.height &&
|
||||
cfg == reuse.getConfig()) {
|
||||
bmp = reuse;
|
||||
|
|
|
@ -573,7 +573,7 @@ public class OsmandMapTileView implements IMapDownloaderCallback {
|
|||
}
|
||||
if (bufferBitmapTmp == null || tileBox.getPixHeight() != bufferBitmapTmp.getHeight()
|
||||
|| tileBox.getPixWidth() != bufferBitmapTmp.getWidth()) {
|
||||
bufferBitmapTmp = Bitmap.createBitmap(tileBox.getPixWidth(), tileBox.getPixHeight(), Config.RGB_565);
|
||||
bufferBitmapTmp = Bitmap.createBitmap(tileBox.getPixWidth(), tileBox.getPixHeight(), Config.ARGB_8888);
|
||||
}
|
||||
long start = SystemClock.elapsedRealtime();
|
||||
final QuadPoint c = tileBox.getCenterPixelPoint();
|
||||
|
|
Loading…
Reference in a new issue