Merge pull request #251 from jmakovicka/native-filter-icons
filter map icon bitmaps
This commit is contained in:
commit
0df03fbd25
2 changed files with 2 additions and 0 deletions
|
@ -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);
|
||||
|
|
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue