2007-05-15 Adam Treat <adam@staikos.net>
authorstaikos <staikos@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Wed, 16 May 2007 04:25:38 +0000 (04:25 +0000)
committerstaikos <staikos@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Wed, 16 May 2007 04:25:38 +0000 (04:25 +0000)
        Reviewed by George Staikos.

        - Implement drawArc with proper units.

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@21507 268f45cc-cd09-0410-ab3c-d52691b4dbfc

WebCore/ChangeLog
WebCore/platform/graphics/qt/GraphicsContextQt.cpp

index 7b7732e4a6d04de81c1f2c9443afeb39a9ec530f..df4fec4f0211817767cc1a782df5f72920db6961 100644 (file)
@@ -1,3 +1,12 @@
+2007-05-15  Adam Treat  <adam@staikos.net>
+
+        Reviewed by George Staikos.
+
+        - Implement drawArc with proper units.
+
+        * platform/graphics/qt/GraphicsContextQt.cpp:
+        (WebCore::GraphicsContext::strokeArc):
+
 2007-05-15  Adam Treat  <adam@staikos.net>
 
         Reviewed by George Staikos.
index da3d209a57cfd14877798c4ed9de38800b9081bf..a3c4e046ec37f1ddbe8923f7f23f8fe759c1a3bd 100644 (file)
@@ -451,7 +451,7 @@ void GraphicsContext::strokeArc(const IntRect& rect, int startAngle, int angleSp
     if (paintingDisabled() || strokeStyle() == NoStroke || strokeThickness() <= 0.0f || !strokeColor().alpha())
         return;
 
-    m_data->p().drawArc(rect, startAngle, angleSpan);
+    m_data->p().drawArc(rect, startAngle * 16, angleSpan * 16);
 }
 
 void GraphicsContext::drawConvexPolygon(size_t npoints, const FloatPoint* points, bool shouldAntialias)