diff options
author | Strangerke | 2019-09-07 22:49:07 +0200 |
---|---|---|
committer | Strangerke | 2019-09-07 22:49:07 +0200 |
commit | b1db45b718c6ebdc4f159a22c7b8ab1ecf6ce106 (patch) | |
tree | 28d2a36576be8708d67c4d97f5bc4b97bfa956b3 /graphics | |
parent | d99ba0a12675286d81431cb38f6ef55c02e7d497 (diff) | |
download | scummvm-rg350-b1db45b718c6ebdc4f159a22c7b8ab1ecf6ce106.tar.gz scummvm-rg350-b1db45b718c6ebdc4f159a22c7b8ab1ecf6ce106.tar.bz2 scummvm-rg350-b1db45b718c6ebdc4f159a22c7b8ab1ecf6ce106.zip |
HDB: Remove useless returns
Diffstat (limited to 'graphics')
-rw-r--r-- | graphics/primitives.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/graphics/primitives.cpp b/graphics/primitives.cpp index 1e48ca16b5..97e3d06177 100644 --- a/graphics/primitives.cpp +++ b/graphics/primitives.cpp @@ -125,7 +125,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! */ if (dx != 0 && thick != 0) { - double ac_recip = 1/dx * sqrt(dx * dx + dy * dy); // 1 / cos(atan2((double)dy, (double)dx)); + double ac_recip = 1/dx * sqrt((double)(dx * dx + dy * dy)); // 1 / cos(atan2((double)dy, (double)dx)); wid = thick * ac_recip; } else { wid = 1; @@ -183,7 +183,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! */ if (dy != 0 && thick != 0) { - double as_recip = 1/dy * sqrt(dx * dx + dy * dy); // 1 / sin(atan2((double)dy, (double)dx)); + double as_recip = 1/dy * sqrt((double)(dx * dx + dy * dy)); // 1 / sin(atan2((double)dy, (double)dx)); wid = thick * as_recip; } else { wid = 1; |