Fixed disappering tracks, rivers and so on plus fixed roads only drawn as shadow.

This commit is contained in:
seeebek 2011-10-10 20:38:13 +03:00
parent fc3740c89e
commit 7c958094e8

View file

@ -358,10 +358,10 @@ public class OsmandRenderer {
for (int k = 0; k < keys.length; k++) {
if(repeat == true && shadowarray[shadownum] == k){
/*if(repeat == true && shadowarray[shadownum] == k){
shadownum++;
continue;
}
}*/
TIntArrayList list = orderMap.get(keys[k]);
@ -388,7 +388,7 @@ public class OsmandRenderer {
if(keys[k] > 57 && repeat == false && shadow > 1){
shadow = 0;
shadownum = 0;
k = shadowarray[0];
k = shadowarray[0]-1;
repeat = true;
}
}
@ -950,7 +950,7 @@ public class OsmandRenderer {
if(paint.getPathEffect() == null) paint.setColor(0xffbababa);
canvas.drawPath(path, paint);
}
else if(shadow == 3) canvas.drawPath(path, paint);
//check for shadow and save index in array
if(shadowRadius > 0 && shadow > 1){