diff options
author | Eugene Sandulenko | 2016-05-04 20:56:59 +0200 |
---|---|---|
committer | Eugene Sandulenko | 2016-05-04 21:15:58 +0200 |
commit | d7fe475266707691e7fd61ee16cb51292e4d5b93 (patch) | |
tree | 3bd52825e5b385a0c08d24fac7b222856e92e04f | |
parent | 534f723fa55197a0402400af85d86cafe1c5934d (diff) | |
download | scummvm-rg350-d7fe475266707691e7fd61ee16cb51292e4d5b93.tar.gz scummvm-rg350-d7fe475266707691e7fd61ee16cb51292e4d5b93.tar.bz2 scummvm-rg350-d7fe475266707691e7fd61ee16cb51292e4d5b93.zip |
TONY: Remove redundant checks
Since we have ((color & 0x1f) * 6) / 6, it cannot be > 0x1f, thus removing these
checks as redundant.
-rw-r--r-- | engines/tony/gfxcore.cpp | 7 |
1 files changed, 0 insertions, 7 deletions
diff --git a/engines/tony/gfxcore.cpp b/engines/tony/gfxcore.cpp index 2a32926c53..076f1ee91c 100644 --- a/engines/tony/gfxcore.cpp +++ b/engines/tony/gfxcore.cpp @@ -1733,13 +1733,6 @@ void RMGfxSourceBuffer8AA::drawAA(RMGfxTargetBuffer &bigBuf, RMGfxPrimitive *pri g /= 5; b /= 5; - if (r > 0x1f) - r = 0x1f; - if (g > 0x3f) - g = 0x3f; - if (b > 0x1f) - b = 0x1f; - mybuf[0] = (r << 11) | (g << 5) | b; } } |