Draw: Fixed compiler compatibility issue in DDARasterizer

git-svn-id: svn://ultimatepp.org/upp/trunk@6069 f0d560ea-af0d-0410-9eb7-867de7ffcac7
This commit is contained in:
cxl 2013-05-14 07:41:37 +00:00
parent 6d8d9a7b45
commit b062c1701d

View file

@ -110,8 +110,8 @@ struct DDARasterizer::Segments : DDARasterizer {
void DDARasterizer::FatLine(Point p2)
{
Point v = p2 - p1;
Pointf shift = width * Orthogonal(Pointf(v) / Length((Pointf(v))));
Point p = Pointf(p1) + shift / 2;
Pointf shift = (double)width * Orthogonal(Pointf(v) / Length((Pointf(v))));
Point p = Pointf(p1) + shift / 2.0;
Point pp = p0;
p0 = p1; // avoid Close
Polygon();