[Scummvm-cvs-logs] SF.net SVN: scummvm:[44999] scummvm/trunk/engines/sci/gui/gui_gfx.cpp
m_kiewitz at users.sourceforge.net
m_kiewitz at users.sourceforge.net
Tue Oct 13 00:23:28 CEST 2009
Revision: 44999
http://scummvm.svn.sourceforge.net/scummvm/?rev=44999&view=rev
Author: m_kiewitz
Date: 2009-10-12 22:23:27 +0000 (Mon, 12 Oct 2009)
Log Message:
-----------
SCI/newgui: priority band initialization - forgot to use priorityBandCount variable
Modified Paths:
--------------
scummvm/trunk/engines/sci/gui/gui_gfx.cpp
Modified: scummvm/trunk/engines/sci/gui/gui_gfx.cpp
===================================================================
--- scummvm/trunk/engines/sci/gui/gui_gfx.cpp 2009-10-12 22:08:35 UTC (rev 44998)
+++ scummvm/trunk/engines/sci/gui/gui_gfx.cpp 2009-10-12 22:23:27 UTC (rev 44999)
@@ -933,8 +933,8 @@
_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++)
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
More information about the Scummvm-git-logs
mailing list