diff options
-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++) |