DrawingMode is no longer in agg namespace, an ellipse is drawn with a minimum of 12 sections
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@11247 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
@@ -868,7 +868,7 @@ Painter::_DrawEllipse(BPoint center, float xRadius, float yRadius,
|
|||||||
float width = fPenSize;
|
float width = fPenSize;
|
||||||
_Transform(&width);
|
_Transform(&width);
|
||||||
|
|
||||||
int32 divisions = (int32)((xRadius + yRadius) * PI) / 2 * (int32)width;
|
int32 divisions = (int32)max_c(12, ((xRadius + yRadius) * PI) / 2 * (int32)width);
|
||||||
|
|
||||||
agg::ellipse path(center.x, center.y, xRadius, yRadius, divisions);
|
agg::ellipse path(center.x, center.y, xRadius, yRadius, divisions);
|
||||||
|
|
||||||
@@ -976,7 +976,7 @@ Painter::_SetPattern(const pattern& p) const
|
|||||||
// if ((uint64)p != (uint64)*fPatternHandler->GetR5Pattern()) {
|
// if ((uint64)p != (uint64)*fPatternHandler->GetR5Pattern()) {
|
||||||
printf("Painter::_SetPattern()\n");
|
printf("Painter::_SetPattern()\n");
|
||||||
fPatternHandler->SetPattern(p);
|
fPatternHandler->SetPattern(p);
|
||||||
agg::DrawingMode* mode = NULL;
|
DrawingMode* mode = NULL;
|
||||||
if (memcmp(&p, &B_SOLID_HIGH, sizeof(pattern)) == 0) {
|
if (memcmp(&p, &B_SOLID_HIGH, sizeof(pattern)) == 0) {
|
||||||
_SetRendererColor(fPatternHandler->HighColor().GetColor32());
|
_SetRendererColor(fPatternHandler->HighColor().GetColor32());
|
||||||
mode = DrawingModeFactory::DrawingModeFor(fDrawingMode,
|
mode = DrawingModeFactory::DrawingModeFor(fDrawingMode,
|
||||||
|
|||||||
Reference in New Issue
Block a user