[Scummvm-cvs-logs] SF.net SVN: scummvm: [25504] scummvm/trunk/engines/agos/res_ami.cpp
kirben at users.sourceforge.net
kirben at users.sourceforge.net
Mon Feb 12 02:07:27 CET 2007
Revision: 25504
http://scummvm.svn.sourceforge.net/scummvm/?rev=25504&view=rev
Author: kirben
Date: 2007-02-11 17:07:27 -0800 (Sun, 11 Feb 2007)
Log Message:
-----------
Add Quietust's changes to fix image glitches in Amiga AGA/CD32 versions of Simon the Sorcerer 1.
Modified Paths:
--------------
scummvm/trunk/engines/agos/res_ami.cpp
Modified: scummvm/trunk/engines/agos/res_ami.cpp
===================================================================
--- scummvm/trunk/engines/agos/res_ami.cpp 2007-02-12 00:21:30 UTC (rev 25503)
+++ scummvm/trunk/engines/agos/res_ami.cpp 2007-02-12 01:07:27 UTC (rev 25504)
@@ -129,10 +129,18 @@
length = (width + 15) / 16 * height;
for (i = 0; i < length; i++) {
uint16 w[kMaxColorDepth];
- for (j = 0; j < colorDepth; ++j) {
- w[j] = READ_BE_UINT16(src); src += 2;
+ if (getGameType() == GType_SIMON1 && !is32Colors) {
+ for (j = 0; j < colorDepth; ++j) {
+ w[j] = READ_BE_UINT16(src + j * length * 2);
+ }
+ bitplanetochunky(w, colorDepth, dst);
+ src += 2;
+ } else {
+ for (j = 0; j < colorDepth; ++j) {
+ w[j] = READ_BE_UINT16(src); src += 2;
+ }
+ bitplanetochunky(w, colorDepth, dst);
}
- bitplanetochunky(w, colorDepth, dst);
}
}
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