Fix shader without color
This commit is contained in:
parent
50e3712a5f
commit
4e045d7f7b
1 changed files with 6 additions and 2 deletions
|
@ -29,11 +29,10 @@ import android.content.Context;
|
|||
import android.graphics.Bitmap;
|
||||
import android.graphics.BitmapShader;
|
||||
import android.graphics.Canvas;
|
||||
import android.graphics.Color;
|
||||
import android.graphics.ColorFilter;
|
||||
import android.graphics.DashPathEffect;
|
||||
import android.graphics.Paint;
|
||||
import android.graphics.Rect;
|
||||
import android.graphics.RectF;
|
||||
import android.graphics.Paint.Cap;
|
||||
import android.graphics.Paint.Style;
|
||||
import android.graphics.Path;
|
||||
|
@ -42,6 +41,8 @@ import android.graphics.PathEffect;
|
|||
import android.graphics.PointF;
|
||||
import android.graphics.PorterDuff.Mode;
|
||||
import android.graphics.PorterDuffColorFilter;
|
||||
import android.graphics.Rect;
|
||||
import android.graphics.RectF;
|
||||
import android.graphics.Shader;
|
||||
import android.graphics.Shader.TileMode;
|
||||
import android.os.Handler;
|
||||
|
@ -563,6 +564,9 @@ public class OsmandRenderer {
|
|||
if(ind == 0){
|
||||
String resId = req.getStringPropertyValue(req.ALL.R_SHADER);
|
||||
if(resId != null){
|
||||
if(req.getIntPropertyValue(rColor) == 0) {
|
||||
p.setColor(Color.WHITE); // set color required by skia
|
||||
}
|
||||
p.setShader(getShader(resId));
|
||||
}
|
||||
// do not check shadow color here
|
||||
|
|
Loading…
Reference in a new issue