diff options
author | Martin Kiewitz | 2009-10-12 22:23:27 +0000 |
---|---|---|
committer | Martin Kiewitz | 2009-10-12 22:23:27 +0000 |
commit | d306e1219e606f5af6b3dd37556f1ba1ecb5ed51 (patch) | |
tree | 174d7ed133e98efe71565965807257da94a803a3 | |
parent | 71686a2e7bc0273e857d8328066c1e7294ae0b69 (diff) | |
download | scummvm-rg350-d306e1219e606f5af6b3dd37556f1ba1ecb5ed51.tar.gz scummvm-rg350-d306e1219e606f5af6b3dd37556f1ba1ecb5ed51.tar.bz2 scummvm-rg350-d306e1219e606f5af6b3dd37556f1ba1ecb5ed51.zip |
SCI/newgui: priority band initialization - forgot to use priorityBandCount variable
svn-id: r44999
-rw-r--r-- | engines/sci/gui/gui_gfx.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/engines/sci/gui/gui_gfx.cpp b/engines/sci/gui/gui_gfx.cpp index 18f5a8131c..9490a471f0 100644 --- a/engines/sci/gui/gui_gfx.cpp +++ b/engines/sci/gui/gui_gfx.cpp @@ -933,8 +933,8 @@ void SciGuiGfx::PriorityBandsInit(int16 bandCount, int16 top, int16 bottom) { _priorityBottom = bottom; // Do NOT modify this algo or optimize it anyhow, sierra sci used int32 for calculating the - // priority bands and by using double or anything rounding may destroy the result - bandSize = ((_priorityBottom - _priorityTop) * 2000) / 14; + // priority bands and by using double or anything rounding WILL destroy the result + bandSize = ((_priorityBottom - _priorityTop) * 2000) / _priorityBandCount; memset(_priorityBands, 0, sizeof(byte) * _priorityTop); for (y = _priorityTop; y < _priorityBottom; y++) |