Switch to ARGB_8888

This commit is contained in:
crimean 2018-08-26 23:20:16 +03:00
parent 9a309eadbe
commit 0dd4adb3a3
2 changed files with 2 additions and 2 deletions

View file

@ -770,7 +770,7 @@ public class MapRenderRepositories {
this.prevBmp = this.bmp; this.prevBmp = this.bmp;
this.prevBmpLocation = this.bmpLocation; this.prevBmpLocation = this.bmpLocation;
// necessary for transparent, otherwise 2 times smaller // 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 && if (reuse != null && reuse.getWidth() == currentRenderingContext.width && reuse.getHeight() == currentRenderingContext.height &&
cfg == reuse.getConfig()) { cfg == reuse.getConfig()) {
bmp = reuse; bmp = reuse;

View file

@ -573,7 +573,7 @@ public class OsmandMapTileView implements IMapDownloaderCallback {
} }
if (bufferBitmapTmp == null || tileBox.getPixHeight() != bufferBitmapTmp.getHeight() if (bufferBitmapTmp == null || tileBox.getPixHeight() != bufferBitmapTmp.getHeight()
|| tileBox.getPixWidth() != bufferBitmapTmp.getWidth()) { || 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(); long start = SystemClock.elapsedRealtime();
final QuadPoint c = tileBox.getCenterPixelPoint(); final QuadPoint c = tileBox.getCenterPixelPoint();