diff options
author | Martin Kiewitz | 2016-02-14 23:41:58 +0100 |
---|---|---|
committer | Martin Kiewitz | 2016-02-14 23:41:58 +0100 |
commit | 956aacf83be4da7991fe1a0947e54e44ea4126fd (patch) | |
tree | 0194f6093274b97a6e72dec774868fbbe520a02a | |
parent | a7c7a6d5b787ffdbe0c6ea59c3a247eca842aec1 (diff) | |
download | scummvm-rg350-956aacf83be4da7991fe1a0947e54e44ea4126fd.tar.gz scummvm-rg350-956aacf83be4da7991fe1a0947e54e44ea4126fd.tar.bz2 scummvm-rg350-956aacf83be4da7991fe1a0947e54e44ea4126fd.zip |
GRAPHICS: Fully fix compilation under MSVC
-rw-r--r-- | graphics/primitives.cpp | 2 |
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 { |