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.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;
|
||||||
|
|
|
@ -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();
|
||||||
|
|
Loading…
Reference in a new issue