fixed one moree clipping bug with StrokeLine
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@12404 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
@@ -279,8 +279,10 @@ Painter::StrokeLine(BPoint a, BPoint b, DrawData* context)
|
|||||||
// do this as well, and it is probably hard to calculate
|
// do this as well, and it is probably hard to calculate
|
||||||
// the correct location outside of AGGTextRenderer...
|
// the correct location outside of AGGTextRenderer...
|
||||||
|
|
||||||
_Transform(&a);
|
// "false" means not to do the pixel center offset,
|
||||||
_Transform(&b);
|
// because it would mess up our optimized versions
|
||||||
|
_Transform(&a, false);
|
||||||
|
_Transform(&b, false);
|
||||||
|
|
||||||
SetPenSize(context->pensize);
|
SetPenSize(context->pensize);
|
||||||
|
|
||||||
@@ -317,6 +319,12 @@ Painter::StrokeLine(BPoint a, BPoint b, DrawData* context)
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// do the pixel center offset here
|
||||||
|
a.x += 0.5;
|
||||||
|
a.y += 0.5;
|
||||||
|
b.x += 0.5;
|
||||||
|
b.y += 0.5;
|
||||||
|
|
||||||
agg::path_storage path;
|
agg::path_storage path;
|
||||||
path.move_to(a.x, a.y);
|
path.move_to(a.x, a.y);
|
||||||
path.line_to(b.x, b.y);
|
path.line_to(b.x, b.y);
|
||||||
|
|||||||
Reference in New Issue
Block a user