diff options
author | uruk | 2013-07-23 22:24:20 +0200 |
---|---|---|
committer | uruk | 2013-07-23 22:24:20 +0200 |
commit | 2af413cccfc7f2bd09b097cffa369bb222b20484 (patch) | |
tree | 5b7bdc113392db19ffdf2402a8f45377acb3694f | |
parent | de066939d1d997c66d6c8695ba4f72ed3ccf5c03 (diff) | |
download | scummvm-rg350-2af413cccfc7f2bd09b097cffa369bb222b20484.tar.gz scummvm-rg350-2af413cccfc7f2bd09b097cffa369bb222b20484.tar.bz2 scummvm-rg350-2af413cccfc7f2bd09b097cffa369bb222b20484.zip |
AVALANCHE: Cosmetic correction in Dropdown::chalk().
-rw-r--r-- | engines/avalanche/dropdown2.cpp | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/engines/avalanche/dropdown2.cpp b/engines/avalanche/dropdown2.cpp index 6c7c70e89b..ce95fd2b27 100644 --- a/engines/avalanche/dropdown2.cpp +++ b/engines/avalanche/dropdown2.cpp @@ -287,13 +287,13 @@ void Dropdown::chalk(int16 x, int16 y, char t, Common::String z, bool valid) { for (byte fv = 0; fv < z.size(); fv++) for (byte ff = 0; ff < 8; ff++) { - byte pixel = ~(_vm->_gyro.little[z[fv]][ff] & ander); // Note that it's the bitwise NOT operator! - for (byte bit = 0; bit < 8; bit++) { - byte pixelBit = (pixel >> bit) & 1; - *_vm->_graph.getPixel(x * 8 + fv * 8 + 7 - bit, y + ff) = pixelBit | (pixelBit << 1) | (pixelBit << 2); - // We don't have to bother with the planes. See the original. Note that it's the bitwise OR operator! - } + byte pixel = ~(_vm->_gyro.little[z[fv]][ff] & ander); // Note that it's the bitwise NOT operator! + for (byte bit = 0; bit < 8; bit++) { + byte pixelBit = (pixel >> bit) & 1; + *_vm->_graph.getPixel(x * 8 + fv * 8 + 7 - bit, y + ff) = pixelBit | (pixelBit << 1) | (pixelBit << 2); + // We don't have to bother with the planes. See the original. Note that it's the bitwise OR operator! } + } if (! z.contains(t)) return; |