OSDN Git Service

Fix arc positioning
authorChris Craik <ccraik@google.com>
Mon, 29 Feb 2016 21:34:43 +0000 (13:34 -0800)
committerChris Craik <ccraik@google.com>
Mon, 29 Feb 2016 21:34:44 +0000 (13:34 -0800)
bug:27389290

Change-Id: I479a34ea079f1fce1c308aa809a57885ffa1d004

libs/hwui/BakedOpDispatcher.cpp

index 78764b5..1aab3c7 100644 (file)
@@ -368,7 +368,7 @@ void BakedOpDispatcher::onArcOp(BakedOpRenderer& renderer, const ArcOp& op, cons
                 op.startAngle, op.sweepAngle, op.useCenter, op.paint);
         const AutoTexture holder(texture);
         if (CC_LIKELY(holder.texture)) {
-            renderPathTexture(renderer, state, op.unmappedBounds.left, op.unmappedBounds.right,
+            renderPathTexture(renderer, state, op.unmappedBounds.left, op.unmappedBounds.top,
                     *texture, *(op.paint));
         }
     } else {