[Scummvm-cvs-logs] SF.net SVN: scummvm:[45347] scummvm/trunk/engines/sci/gui/gui_gfx.cpp
m_kiewitz at users.sourceforge.net
m_kiewitz at users.sourceforge.net
Fri Oct 23 20:05:15 CEST 2009
Revision: 45347
http://scummvm.svn.sourceforge.net/scummvm/?rev=45347&view=rev
Author: m_kiewitz
Date: 2009-10-23 18:05:14 +0000 (Fri, 23 Oct 2009)
Log Message:
-----------
SCI/newgui: Priority band (old gfx) now gets correctly initialized, fixes kq4 intro logo
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-23 12:50:51 UTC (rev 45346)
+++ scummvm/trunk/engines/sci/gui/gui_gfx.cpp 2009-10-23 18:05:14 UTC (rev 45347)
@@ -968,6 +968,14 @@
memset(_priorityBands, 0, sizeof(byte) * _priorityTop);
for (y = _priorityTop; y < _priorityBottom; y++)
_priorityBands[y] = 1 + (((y - _priorityTop) * 2000) / bandSize);
+ if (_priorityBandCount == 15) {
+ // When having 15 priority bands, we actually replace band 15 with band 14, cause the original sci interpreter also
+ // does it that way as well
+ y = _priorityBottom;
+ while (_priorityBands[--y] == _priorityBandCount)
+ _priorityBands[y]--;
+ }
+ // We fill space that is left over with the highest band
for (y = _priorityBottom; y < _screen->_height; y++)
_priorityBands[y] = _priorityBandCount;
}
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