[Scummvm-cvs-logs] scummvm master -> 956aacf83be4da7991fe1a0947e54e44ea4126fd
m-kiewitz
m_kiewitz at users.sourceforge.net
Sun Feb 14 23:39:29 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:
956aacf83b GRAPHICS: Fully fix compilation under MSVC
Commit: 956aacf83be4da7991fe1a0947e54e44ea4126fd
https://github.com/scummvm/scummvm/commit/956aacf83be4da7991fe1a0947e54e44ea4126fd
Author: Martin Kiewitz (m_kiewitz at users.sourceforge.net)
Date: 2016-02-14T23:41:58+01:00
Commit Message:
GRAPHICS: Fully fix compilation under MSVC
Changed paths:
graphics/primitives.cpp
diff --git a/graphics/primitives.cpp b/graphics/primitives.cpp
index f2f3590..c9fca83 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 {
More information about the Scummvm-git-logs
mailing list