[Scummvm-cvs-logs] scummvm master -> b6b2bcf6071637d8210d124a7d8090969ba045d1
lordhoto
lordhoto at gmail.com
Sun Feb 21 17:46: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:
b6b2bcf607 GRAPHICS: Remove superfluous ABS usage to silence a warning.
Commit: b6b2bcf6071637d8210d124a7d8090969ba045d1
https://github.com/scummvm/scummvm/commit/b6b2bcf6071637d8210d124a7d8090969ba045d1
Author: Johannes Schickel (lordhoto at scummvm.org)
Date: 2016-02-21T17:45:30+01:00
Commit Message:
GRAPHICS: Remove superfluous ABS usage to silence a warning.
Changed paths:
graphics/VectorRendererSpec.cpp
diff --git a/graphics/VectorRendererSpec.cpp b/graphics/VectorRendererSpec.cpp
index b360327..26f0ced 100644
--- a/graphics/VectorRendererSpec.cpp
+++ b/graphics/VectorRendererSpec.cpp
@@ -804,7 +804,7 @@ drawLine(int x1, int y1, int x2, int y2) {
ptr += pitch;
}
- } else if (ABS(dx) == ABS(dy)) { // diagonal lines
+ } else if (dx == dy) { // diagonal lines
// these ones also use a fixed pitch increase
pitch += (x2 > x1) ? 1 : -1;
More information about the Scummvm-git-logs
mailing list