fix issue 210
git-svn-id: https://osmand.googlecode.com/svn/trunk@702 e29c36b1-1cfa-d876-8d93-3434fc2bb7b8
This commit is contained in:
parent
e069a5c850
commit
4dee3ce788
1 changed files with 4 additions and 2 deletions
|
@ -341,7 +341,7 @@ public class OsmandRenderer {
|
|||
}
|
||||
}
|
||||
|
||||
int skewConstant = 16;
|
||||
int skewConstant = 20;
|
||||
|
||||
int iconsW = rc.width / skewConstant ;
|
||||
int iconsH = rc.height / skewConstant;
|
||||
|
@ -351,7 +351,9 @@ public class OsmandRenderer {
|
|||
if (cachedIcons.get(icon.resId) == null) {
|
||||
Options options = new BitmapFactory.Options();
|
||||
options.inScaled = false;
|
||||
cachedIcons.put(icon.resId, BitmapFactory.decodeResource(context.getResources(), icon.resId));
|
||||
options.inTargetDensity = dm.densityDpi;
|
||||
options.inDensity = dm.densityDpi;
|
||||
cachedIcons.put(icon.resId, BitmapFactory.decodeResource(context.getResources(), icon.resId, options));
|
||||
}
|
||||
Bitmap ico = cachedIcons.get(icon.resId);
|
||||
if (ico != null) {
|
||||
|
|
Loading…
Reference in a new issue