Fix java renderer
This commit is contained in:
parent
484c951790
commit
ffe028fe51
1 changed files with 6 additions and 0 deletions
|
@ -382,10 +382,16 @@ public class OsmandRenderer {
|
||||||
}
|
}
|
||||||
|
|
||||||
protected void drawBitmap(Canvas cv, Bitmap ico, RectF rf) {
|
protected void drawBitmap(Canvas cv, Bitmap ico, RectF rf) {
|
||||||
|
if(ico == null) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
cv.drawBitmap(ico, rf.left, rf.top, paintIcon);
|
cv.drawBitmap(ico, rf.left, rf.top, paintIcon);
|
||||||
}
|
}
|
||||||
|
|
||||||
protected void drawBitmap(Canvas cv, Bitmap ico, RectF rf, Rect src) {
|
protected void drawBitmap(Canvas cv, Bitmap ico, RectF rf, Rect src) {
|
||||||
|
if(ico == null) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
cv.drawBitmap(ico, src, rf, paintIcon);
|
cv.drawBitmap(ico, src, rf, paintIcon);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue