LocationTextureActivity: scale location texture size #547

This commit is contained in:
Emux 2018-06-01 14:58:50 +03:00
parent f9193eaa3f
commit 4d7de87e7d
No known key found for this signature in database
GPG Key ID: 64ED9980896038C3

View File

@ -50,7 +50,8 @@ public class LocationTextureActivity extends BitmapTileActivity implements Locat
Bitmap bmp = null;
try {
is = getResources().openRawResource(R.raw.arrow);
bmp = CanvasAdapter.decodeSvgBitmap(is, 128, 128, 100);
float scale = CanvasAdapter.getScale();
bmp = CanvasAdapter.decodeSvgBitmap(is, (int) (60 * scale), (int) (60 * scale), 100);
} catch (IOException e) {
e.printStackTrace();
} finally {