Update OsmAnd/jni/osmand/textdraw.cpp

This commit is contained in:
vshcherb 2012-04-24 11:29:53 +03:00
parent 35ddefcc9a
commit fab71df9e2

View file

@ -147,13 +147,14 @@ void drawTextOnCanvas(SkCanvas* cv, std::string text, float centerX, float cente
paintText.setStyle(SkPaint::kStroke_Style);
paintText.setColor(-1); // white
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
paintText.setStrokeWidth(2);
paintText.setStyle(SkPaint::kFill_Style);
paintText.setColor(c);
}
cv->drawText(text.data(), text.length(), centerX, centerY, paintText);
// cv->drawText(text.data(), text.length(), centerX, centerY, paintText);
}