[Scummvm-cvs-logs] scummvm master -> a7c7a6d5b787ffdbe0c6ea59c3a247eca842aec1
sev-
sev at scummvm.org
Sun Feb 14 23:11:33 CET 2016
This automated email contains information about 1 new commit which have been
pushed to the 'scummvm' repo located at https://github.com/scummvm/scummvm .
Summary:
a7c7a6d5b7 GRAPHICS: Fix compilation under MSVC
Commit: a7c7a6d5b787ffdbe0c6ea59c3a247eca842aec1
https://github.com/scummvm/scummvm/commit/a7c7a6d5b787ffdbe0c6ea59c3a247eca842aec1
Author: Eugene Sandulenko (sev at scummvm.org)
Date: 2016-02-14T23:10:39+01:00
Commit Message:
GRAPHICS: Fix compilation under MSVC
Changed paths:
graphics/primitives.cpp
diff --git a/graphics/primitives.cpp b/graphics/primitives.cpp
index 90009b3..f2f3590 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 {
More information about the Scummvm-git-logs
mailing list