if we're strokeandfill+hairline, just draw fill (they way paths do) instead

of just hairline stroking (bad)



git-svn-id: http://skia.googlecode.com/svn/trunk@533 2bbb7eff-a529-9590-31e7-b0007b416f81
This commit is contained in:
reed@android.com 2010-03-25 14:31:46 +00:00
Родитель 8381e007dc
Коммит b641c9f20b
1 изменённых файлов: 4 добавлений и 1 удалений

Просмотреть файл

@ -706,7 +706,10 @@ void SkDraw::drawRect(const SkRect& rect, const SkPaint& paint) const {
SkBlitter* blitter = blitterStorage.get(); SkBlitter* blitter = blitterStorage.get();
const SkRegion* clip = fClip; const SkRegion* clip = fClip;
if (paint.getStyle() == SkPaint::kFill_Style) { // we want to "fill" if we are kFill or kStrokeAndFill, since in the latter
// case we are also hairline (if we've gotten to here), which devolves to
// effectively just kFill
if (paint.getStyle() != SkPaint::kStroke_Style) {
if (paint.isAntiAlias()) { if (paint.isAntiAlias()) {
SkScan::AntiFillRect(devRect, clip, blitter); SkScan::AntiFillRect(devRect, clip, blitter);
} else { } else {