aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEugene Sandulenko2016-02-14 23:10:39 +0100
committerEugene Sandulenko2016-02-14 23:10:39 +0100
commita7c7a6d5b787ffdbe0c6ea59c3a247eca842aec1 (patch)
tree883d7c0ed9ba3c521238cdd17becdd2d774a9ab6
parent39991ad4a56450f6c5c439cb5099eb0fcb972b54 (diff)
downloadscummvm-rg350-a7c7a6d5b787ffdbe0c6ea59c3a247eca842aec1.tar.gz
scummvm-rg350-a7c7a6d5b787ffdbe0c6ea59c3a247eca842aec1.tar.bz2
scummvm-rg350-a7c7a6d5b787ffdbe0c6ea59c3a247eca842aec1.zip
GRAPHICS: Fix compilation under MSVC
-rw-r--r--graphics/primitives.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/graphics/primitives.cpp b/graphics/primitives.cpp
index 90009b3332..f2f3590aa4 100644
--- a/graphics/primitives.cpp
+++ b/graphics/primitives.cpp
@@ -127,7 +127,7 @@ void drawThickLine2(int x1, int y1, int x2, int y2, int thick, int color, void (
/* 2.0.12: Michael Schwartz: divide rather than multiply;
TBB: but watch out for /0! */
- double ac = cos(atan2 (dy, dx));
+ double ac = cos(atan2((double)dy, (double)dx));
if (ac != 0) {
wid = thick / ac;
} else {