javauis/lcdui_akn/lcdgr/src/LcdGraphics.cpp
branchRCL_3
changeset 60 6c158198356e
parent 24 0fd27995241b
equal deleted inserted replaced
59:e5618cc85d74 60:6c158198356e
   611         rect.Grow(1,1);
   611         rect.Grow(1,1);
   612 
   612 
   613         TPoint start;
   613         TPoint start;
   614         TPoint end;
   614         TPoint end;
   615         ArcVectors(start, end, rect, aStartAngle, aArcAngle);
   615         ArcVectors(start, end, rect, aStartAngle, aArcAngle);
   616         iContext->DrawPie(rect,start,end);
   616         // Ignore very small arc
       
   617         if (aArcAngle >= 180 || (Abs(start.iX - end.iX) > 2 || Abs(start.iY - end.iY) > 2))
       
   618         {
       
   619             iContext->DrawPie(rect, start, end);
       
   620         }
   617     }
   621     }
   618 }
   622 }
   619 
   623 
   620 void CLcdGraphics::CopyArea(const TPoint& aAreaPosition, const TSize& aAreaSize, const TPoint& aPoint, TInt aAnchor)
   624 void CLcdGraphics::CopyArea(const TPoint& aAreaPosition, const TSize& aAreaSize, const TPoint& aPoint, TInt aAnchor)
   621 {
   625 {
   843     iSurface->Begin(iBitmap, iCount);
   847     iSurface->Begin(iBitmap, iCount);
   844     aCanvas->DrawBackground(*iContext, aPosition, aSize);
   848     aCanvas->DrawBackground(*iContext, aPosition, aSize);
   845     iSurface->End(iCount);
   849     iSurface->End(iCount);
   846 
   850 
   847     CHECK_BITMAP_LOCK();
   851     CHECK_BITMAP_LOCK();
   848     
   852 
   849     // MMIDCanvas::DrawBackground modifies settings of iContext.
   853     // MMIDCanvas::DrawBackground modifies settings of iContext.
   850     // Reset pen and brush settings here, so they
   854     // Reset pen and brush settings here, so they
   851     // are re-applied again when needed.
   855     // are re-applied again when needed.
   852     iState = 0;
   856     iState = 0;
   853     iContext->SetPenStyle(CGraphicsContext::ENullPen);
   857     iContext->SetPenStyle(CGraphicsContext::ENullPen);