improve smoothnes of arcs rendering in Painter, fix a warning
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@12710 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
@@ -122,8 +122,8 @@ ServerWindow::ServerWindow( const char *string,
|
||||
// fClientWinPort is the port to which the app awaits messages from the server
|
||||
fClientWinPort(winport),
|
||||
fClientLooperPort(looperPort),
|
||||
fHandlerToken(handlerID),
|
||||
fClientViewsWithInvalidCoords(B_VIEW_RESIZED)
|
||||
fClientViewsWithInvalidCoords(B_VIEW_RESIZED),
|
||||
fHandlerToken(handlerID)
|
||||
{
|
||||
STRACE(("ServerWindow(%s)::ServerWindow()\n",string? string: "NULL"));
|
||||
|
||||
|
||||
@@ -776,6 +776,7 @@ Painter::StrokeArc(BPoint center, float xRadius, float yRadius,
|
||||
-angleRad, -spanRad);
|
||||
|
||||
agg::conv_curve<agg::bezier_arc> path(arc);
|
||||
path.approximation_scale(2.0);
|
||||
|
||||
return _StrokePath(path);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user