Update OsmAnd/jni/osmand/textdraw.cpp
This commit is contained in:
parent
35ddefcc9a
commit
fab71df9e2
1 changed files with 3 additions and 2 deletions
|
@ -147,13 +147,14 @@ void drawTextOnCanvas(SkCanvas* cv, std::string text, float centerX, float cente
|
||||||
paintText.setStyle(SkPaint::kStroke_Style);
|
paintText.setStyle(SkPaint::kStroke_Style);
|
||||||
paintText.setColor(-1); // white
|
paintText.setColor(-1); // white
|
||||||
paintText.setStrokeWidth(2 + textShadow);
|
paintText.setStrokeWidth(2 + textShadow);
|
||||||
cv->drawText(text.c_str(), text.length(), centerX, centerY, paintText);
|
// FIXME test black areas...
|
||||||
|
// cv->drawText(text.c_str(), text.length(), centerX, centerY, paintText);
|
||||||
// reset
|
// reset
|
||||||
paintText.setStrokeWidth(2);
|
paintText.setStrokeWidth(2);
|
||||||
paintText.setStyle(SkPaint::kFill_Style);
|
paintText.setStyle(SkPaint::kFill_Style);
|
||||||
paintText.setColor(c);
|
paintText.setColor(c);
|
||||||
}
|
}
|
||||||
cv->drawText(text.data(), text.length(), centerX, centerY, paintText);
|
// cv->drawText(text.data(), text.length(), centerX, centerY, paintText);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue