[Scummvm-cvs-logs] SF.net SVN: scummvm:[46340] scummvm/trunk/engines/teenagent/surface.cpp
megath at users.sourceforge.net
megath at users.sourceforge.net
Sat Dec 12 14:01:00 CET 2009
Revision: 46340
http://scummvm.svn.sourceforge.net/scummvm/?rev=46340&view=rev
Author: megath
Date: 2009-12-12 13:00:44 +0000 (Sat, 12 Dec 2009)
Log Message:
-----------
fixed non-default src rectangle rendering
Modified Paths:
--------------
scummvm/trunk/engines/teenagent/surface.cpp
Modified: scummvm/trunk/engines/teenagent/surface.cpp
===================================================================
--- scummvm/trunk/engines/teenagent/surface.cpp 2009-12-12 12:47:03 UTC (rev 46339)
+++ scummvm/trunk/engines/teenagent/surface.cpp 2009-12-12 13:00:44 UTC (rev 46340)
@@ -78,10 +78,10 @@
byte *dst = (byte *)surface->getBasePtr(dx + x, dy + y);
for (int i = src_rect.top; i < src_rect.bottom; ++i) {
- for (int j = src_rect.left; j < src_rect.right; ++j) {
+ for (int j = 0; j < src_rect.width(); ++j) {
byte p = src[j];
if (p != 0xff)
- dst[mirror? w - j - 1: j] = p;
+ dst[(mirror? src_rect.width() - j - 1: j)] = p;
}
dst += surface->pitch;
src += pitch;
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