aboutsummaryrefslogtreecommitdiff
path: root/graphics
diff options
context:
space:
mode:
Diffstat (limited to 'graphics')
-rw-r--r--graphics/primitives.cpp2
1 files changed, 1 insertions, 1 deletions
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 {