diff options
author | Paul Gilbert | 2011-04-20 23:02:07 +1000 |
---|---|---|
committer | Paul Gilbert | 2011-04-20 23:02:07 +1000 |
commit | 3fee10eb604d31aa731362404fc7eaa080032642 (patch) | |
tree | 69ce9ca4e56e8504b7f790dfb824823c9f5199a3 /engines/tsage/core.cpp | |
parent | 1eb75f789228f881c623d4ca72df4d5cba25ea68 (diff) | |
download | scummvm-rg350-3fee10eb604d31aa731362404fc7eaa080032642.tar.gz scummvm-rg350-3fee10eb604d31aa731362404fc7eaa080032642.tar.bz2 scummvm-rg350-3fee10eb604d31aa731362404fc7eaa080032642.zip |
TSAGE: Cleaner bugfix for text colours being incorrect
Diffstat (limited to 'engines/tsage/core.cpp')
-rw-r--r-- | engines/tsage/core.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/engines/tsage/core.cpp b/engines/tsage/core.cpp index d064917c36..1b38599df1 100644 --- a/engines/tsage/core.cpp +++ b/engines/tsage/core.cpp @@ -1300,7 +1300,7 @@ uint8 ScenePalette::indexOf(uint r, uint g, uint b, int threshold) { int bDiff = abs(ib - (int)b); int idxThreshold = rDiff * rDiff + gDiff * gDiff + bDiff * bDiff; - if (idxThreshold <= threshold) { + if (idxThreshold < threshold) { threshold = idxThreshold; palIndex = i; } |