[Scummvm-cvs-logs] SF.net SVN: scummvm: [22051] scummvm/trunk/engines/simon/simon.cpp
kirben at users.sourceforge.net
kirben at users.sourceforge.net
Thu Apr 20 00:02:08 CEST 2006
Revision: 22051
Author: kirben
Date: 2006-04-20 00:01:55 -0700 (Thu, 20 Apr 2006)
ViewCVS: http://svn.sourceforge.net/scummvm/?rev=22051&view=rev
Log Message:
-----------
Fix mistake in vertical scrolling in FF
Modified Paths:
--------------
scummvm/trunk/engines/simon/simon.cpp
Modified: scummvm/trunk/engines/simon/simon.cpp
===================================================================
--- scummvm/trunk/engines/simon/simon.cpp 2006-04-20 06:38:46 UTC (rev 22050)
+++ scummvm/trunk/engines/simon/simon.cpp 2006-04-20 07:01:55 UTC (rev 22051)
@@ -2632,16 +2632,17 @@
uint x, y;
if (_scrollXMax == 0) {
+ uint screenSize = 8 * _screenWidth;
if (_scrollFlag < 0) {
- memmove(dst + 8 * _screenWidth, dst, (_scrollWidth - 8) * _screenHeight);
+ memmove(dst + screenSize, dst, _scrollWidth * _screenHeight - screenSize);
} else {
- memmove(dst, dst + 8 * _screenWidth, (_scrollWidth - 8) * _screenHeight);
+ memmove(dst, dst + screenSize, _scrollWidth * _screenHeight - screenSize);
}
y = _scrollY - 8;
if (_scrollFlag > 0) {
- dst += (_screenHeight - 8) * _screenWidth;
+ dst += _screenHeight * _screenWidth - screenSize;
y += 488;
}
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