mirror of
https://github.com/ultimatepp/ultimatepp.git
synced 2026-07-11 22:03:01 -06:00
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:
parent
6d8d9a7b45
commit
b062c1701d
1 changed files with 2 additions and 2 deletions
|
|
@ -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();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue