webengine/osswebengine/WebCore/platform/graphics/symbian/GraphicsContextSymbian.cpp
changeset 1 7c90e6132015
parent 0 dd21522fd290
child 47 e1bea15f9a39
equal deleted inserted replaced
0:dd21522fd290 1:7c90e6132015
   371 
   371 
   372     CFbsBitGc& gc = context->gc();
   372     CFbsBitGc& gc = context->gc();
   373 
   373 
   374     int x = xForm(rect.x());
   374     int x = xForm(rect.x());
   375     int y = xForm(rect.y());
   375     int y = xForm(rect.y());
   376     float w = (float)rect.width();
   376     float w = xForm((float)rect.width());
   377 
   377 
   378     // starting point & end point
   378     // starting point & end point
   379     float r = w/2;
   379     float r = w/2;
   380     float fa = startAngle;
   380     float fa = startAngle;
   381     TPoint ps( x + r*cos(-fa * M_PI/180), y + r*sin( -fa * M_PI/180 ) );
   381     TPoint ps( x + r + r*cos(fa * M_PI/180), y + r - r*sin( fa * M_PI/180 ) );
   382     fa += angleSpan;
   382     fa += angleSpan;
   383     TPoint pe( x + r*cos(-fa * M_PI/180), y + r*sin( -fa * M_PI/180 ) );
   383     TPoint pe( x + r + r*cos(fa * M_PI/180), y + r - r*sin( fa * M_PI/180 ) );
   384 
   384 
   385     setPenColor( context, strokeColor() );
   385     setPenColor( context, strokeColor() );
   386     gc.DrawArc( xForm(rect), ps, pe );
   386     gc.DrawArc( xForm(rect), ps, pe );
   387 }
   387 }
   388 
   388