fix issue 210

git-svn-id: https://osmand.googlecode.com/svn/trunk@702 e29c36b1-1cfa-d876-8d93-3434fc2bb7b8
This commit is contained in:
Victor Shcherb 2010-11-24 15:38:04 +00:00
parent e069a5c850
commit 4dee3ce788

View file

@ -341,7 +341,7 @@ public class OsmandRenderer {
} }
} }
int skewConstant = 16; int skewConstant = 20;
int iconsW = rc.width / skewConstant ; int iconsW = rc.width / skewConstant ;
int iconsH = rc.height / skewConstant; int iconsH = rc.height / skewConstant;
@ -351,7 +351,9 @@ public class OsmandRenderer {
if (cachedIcons.get(icon.resId) == null) { if (cachedIcons.get(icon.resId) == null) {
Options options = new BitmapFactory.Options(); Options options = new BitmapFactory.Options();
options.inScaled = false; 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); Bitmap ico = cachedIcons.get(icon.resId);
if (ico != null) { if (ico != null) {