From b7c26562d08bf72882eeca268a1bb51ea579653d Mon Sep 17 00:00:00 2001 From: Rob Tsuk Date: Mon, 3 Nov 2014 16:29:03 -0800 Subject: [PATCH] Make points drawn with default paint visible When no stroke width is set, use 0.5 instead of 0.25 to make sure the resulting rectangle spans at least one pixel. Bug: 15455111 Change-Id: Id0a4b6d014c542ffc98b13a032f88ae0ce69b3a1 --- libs/hwui/PathTessellator.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libs/hwui/PathTessellator.cpp b/libs/hwui/PathTessellator.cpp index 281ca02c39f18..27ef06fae866a 100644 --- a/libs/hwui/PathTessellator.cpp +++ b/libs/hwui/PathTessellator.cpp @@ -812,7 +812,7 @@ void PathTessellator::tessellatePoints(const float* points, int count, const SkP // determine point shape SkPath path; float radius = paintInfo.halfStrokeWidth; - if (radius == 0.0f) radius = 0.25f; + if (radius == 0.0f) radius = 0.5f; if (paintInfo.cap == SkPaint::kRound_Cap) { path.addCircle(0, 0, radius);