AGG: Fix typo in agg_rounded_rect and agg_bezier_arc
Typo fixes pulled from: https://github.com/mapnik/mapnik/commit/180f2543b20aa4aae27ac4b919133c601376e76b https://github.com/mapnik/mapnik/commit/0420b13055ebf75cd59c3358bda852784d19c55b Change-Id: I9acaa1f814bad531ba3968620d25af1b7a278639 Reviewed-on: https://review.haiku-os.org/c/haiku/+/4417 Reviewed-by: Jérôme Duval <[email protected]> Tested-by: Commit checker robot <[email protected]> Reviewed-by: nephele nephele <[email protected]>
This commit is contained in:
@@ -144,7 +144,7 @@ namespace agg
|
||||
m_radii_ok = true;
|
||||
|
||||
if(rx < 0.0) rx = -rx;
|
||||
if(ry < 0.0) ry = -rx;
|
||||
if(ry < 0.0) ry = -ry;
|
||||
|
||||
// Calculate the middle point between
|
||||
// the current and the final points
|
||||
|
||||
@@ -78,8 +78,8 @@ namespace agg
|
||||
//--------------------------------------------------------------------
|
||||
void rounded_rect::normalize_radius()
|
||||
{
|
||||
double dx = fabs(m_y2 - m_y1);
|
||||
double dy = fabs(m_x2 - m_x1);
|
||||
double dx = fabs(m_x2 - m_x1);
|
||||
double dy = fabs(m_y2 - m_y1);
|
||||
|
||||
double k = 1.0;
|
||||
double t;
|
||||
|
||||
Reference in New Issue
Block a user