cosmetic changes, and removal of some unnecessary vector conversion pipelines in Stroke and FillRoundRect
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@10604 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
parent
4569b90da0
commit
36351e2d44
@ -208,7 +208,7 @@ Painter::SetScale(float scale)
|
||||
_RebuildClipping();
|
||||
}
|
||||
|
||||
// SetScale
|
||||
// SetPenSize
|
||||
void
|
||||
Painter::SetPenSize(float size)
|
||||
{
|
||||
@ -451,9 +451,6 @@ Painter::StrokeRoundRect(const BRect& r, float xRadius, float yRadius,
|
||||
rect.rect(lt.x, lt.y, rb.x, rb.y);
|
||||
rect.radius(xRadius, yRadius);
|
||||
|
||||
// agg::conv_curve<agg::rounded_rect> path(rect);
|
||||
|
||||
// _StrokePath(path, p);
|
||||
_StrokePath(rect, p);
|
||||
}
|
||||
|
||||
@ -480,9 +477,7 @@ Painter::FillRoundRect(const BRect& r, float xRadius, float yRadius,
|
||||
rect.rect(lt.x, lt.y, rb.x, rb.y);
|
||||
rect.radius(xRadius, yRadius);
|
||||
|
||||
agg::conv_curve<agg::rounded_rect> path(rect);
|
||||
|
||||
_FillPath(path, p);
|
||||
_FillPath(rect, p);
|
||||
}
|
||||
|
||||
// StrokeEllipse
|
||||
|
@ -218,12 +218,6 @@ class Painter {
|
||||
|
||||
agg::rendering_buffer* fBuffer;
|
||||
|
||||
// Man könnte das alles vielleicht wieder schneller machen,
|
||||
// wenn man für jeden blending_mode einen eigenen Renderer
|
||||
// mit eignenem entsprechenden Pixelformat vorhält.
|
||||
// Dann könnten für B_SOLID_HIGH und jegliche andere const pattern&
|
||||
// getrennt zwei Versionen von jedem blending_mode existieren.
|
||||
|
||||
// AGG rendering and rasterization classes
|
||||
pixfmt* fPixelFormat;
|
||||
renderer_base* fBaseRenderer;
|
||||
|
Loading…
Reference in New Issue
Block a user