[Scummvm-cvs-logs] SF.net SVN: scummvm: [28393] scummvm/trunk/engines/touche/resource.cpp
cyx at users.sourceforge.net
cyx at users.sourceforge.net
Wed Aug 1 23:00:00 CEST 2007
Revision: 28393
http://scummvm.svn.sourceforge.net/scummvm/?rev=28393&view=rev
Author: cyx
Date: 2007-08-01 13:59:59 -0700 (Wed, 01 Aug 2007)
Log Message:
-----------
workaround for original game graphic glitch #1751170
Modified Paths:
--------------
scummvm/trunk/engines/touche/resource.cpp
Modified: scummvm/trunk/engines/touche/resource.cpp
===================================================================
--- scummvm/trunk/engines/touche/resource.cpp 2007-08-01 20:56:39 UTC (rev 28392)
+++ scummvm/trunk/engines/touche/resource.cpp 2007-08-01 20:59:59 UTC (rev 28393)
@@ -521,20 +521,21 @@
debugC(9, kDebugResource, "ToucheEngine::res_loadBackdrop()");
_currentBitmapWidth = _fData.readUint16LE();
_currentBitmapHeight = _fData.readUint16LE();
- uint8 *dst = _backdropBuffer;
for (int i = 0; i < _currentBitmapHeight; ++i) {
- res_decodeScanLineImageRLE(dst + _currentBitmapWidth * i, _currentBitmapWidth);
+ res_decodeScanLineImageRLE(_backdropBuffer + _currentBitmapWidth * i, _currentBitmapWidth);
}
_roomWidth = _currentBitmapWidth;
- dst = _backdropBuffer;
for (int i = 0; i < _currentBitmapWidth; ++i) {
- if (*dst == 255) {
+ if (_backdropBuffer[i] == 255) {
_roomWidth = i;
- *dst = 0;
+ _backdropBuffer[i] = 0;
break;
}
- ++dst;
}
+ // Workaround for bug #1751149 (original bitmap has a white pixel in its transparent area).
+ if (_currentRoomNum == 8 && _currentBitmapWidth == 860) {
+ _backdropBuffer[120 * _currentBitmapWidth + 734] = 0;
+ }
}
void ToucheEngine::res_loadImage(int num, uint8 *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