Merge pull request #251 from jmakovicka/native-filter-icons

filter map icon bitmaps
This commit is contained in:
vshcherb 2012-05-14 13:37:50 -07:00
commit 0df03fbd25
2 changed files with 2 additions and 0 deletions

View file

@ -465,6 +465,7 @@ void drawIconsOverCanvas(RenderingContext* rc, SkCanvas* canvas)
size_t ji = 0;
SkPaint p;
p.setStyle(SkPaint::kStroke_Style);
p.setFilterBitmap(true);
for(;ji< rc->iconsToDraw.size(); ji++)
{
IconDrawInfo icon = rc->iconsToDraw.at(ji);

View file

@ -468,6 +468,7 @@ void drawTextOverCanvas(RenderingContext* rc, SkCanvas* cv) {
paintIcon.setStyle(SkPaint::kStroke_Style);
paintIcon.setStrokeWidth(1);
paintIcon.setColor(0xff000000);
paintIcon.setFilterBitmap(true);
SkPaint paintText;
paintText.setStyle(SkPaint::kFill_Style);
paintText.setStrokeWidth(1);