From 956aacf83be4da7991fe1a0947e54e44ea4126fd Mon Sep 17 00:00:00 2001 From: Martin Kiewitz Date: Sun, 14 Feb 2016 23:41:58 +0100 Subject: GRAPHICS: Fully fix compilation under MSVC --- graphics/primitives.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'graphics/primitives.cpp') diff --git a/graphics/primitives.cpp b/graphics/primitives.cpp index f2f3590aa4..c9fca83f7b 100644 --- a/graphics/primitives.cpp +++ b/graphics/primitives.cpp @@ -187,7 +187,7 @@ void drawThickLine2(int x1, int y1, int x2, int y2, int thick, int color, void ( /* More-or-less vertical. use wid for horizontal stroke */ /* 2.0.12: Michael Schwartz: divide rather than multiply; TBB: but watch out for /0! */ - double as = sin(atan2(dy, dx)); + double as = sin(atan2((double)dy, (double)dx)); if (as != 0) { wid = thick / as; } else { -- cgit v1.2.3