From b062c1701dba355452f796964c69df6c112c0964 Mon Sep 17 00:00:00 2001 From: cxl Date: Tue, 14 May 2013 07:41:37 +0000 Subject: [PATCH] Draw: Fixed compiler compatibility issue in DDARasterizer git-svn-id: svn://ultimatepp.org/upp/trunk@6069 f0d560ea-af0d-0410-9eb7-867de7ffcac7 --- uppsrc/Draw/DDARasterizer.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/uppsrc/Draw/DDARasterizer.cpp b/uppsrc/Draw/DDARasterizer.cpp index 661a5df04..34b5885c4 100644 --- a/uppsrc/Draw/DDARasterizer.cpp +++ b/uppsrc/Draw/DDARasterizer.cpp @@ -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();