[Scummvm-cvs-logs] SF.net SVN: scummvm:[45968] scummvm/trunk/engines/teenagent/surface_list. cpp
megath at users.sourceforge.net
megath at users.sourceforge.net
Wed Nov 18 09:13:44 CET 2009
Revision: 45968
http://scummvm.svn.sourceforge.net/scummvm/?rev=45968&view=rev
Author: megath
Date: 2009-11-18 08:13:44 +0000 (Wed, 18 Nov 2009)
Log Message:
-----------
minor textual fixes
Modified Paths:
--------------
scummvm/trunk/engines/teenagent/surface_list.cpp
Modified: scummvm/trunk/engines/teenagent/surface_list.cpp
===================================================================
--- scummvm/trunk/engines/teenagent/surface_list.cpp 2009-11-17 23:01:58 UTC (rev 45967)
+++ scummvm/trunk/engines/teenagent/surface_list.cpp 2009-11-18 08:13:44 UTC (rev 45968)
@@ -36,9 +36,9 @@
if (stream->eos())
return;
- debug(0, "loading %u surfaces from list (skip %d)", fn, sub_hack);
+ surfaces_n = fn - sub_hack;
+ debug(0, "loading %u surfaces from list (skip %d)", surfaces_n, sub_hack);
- surfaces_n = fn - sub_hack;
if (surfaces_n == 0)
return;
@@ -62,15 +62,16 @@
surfaces_n = 0;
}
-Common::Rect SurfaceList::render(Graphics::Surface *surface, int horizont, bool second_pass) const {
+Common::Rect SurfaceList::render(Graphics::Surface *surface, int horizon, bool second_pass) const {
Common::Rect dirty;
for(uint i = 0; i < surfaces_n; ++i) {
const Surface &s = surfaces[i];
if (second_pass) {
- if (s.y + s.h >= horizont)
+ debug(0, "%d %d", s.y + s.h, horizon);
+ if (s.y + s.h > horizon)
dirty.extend(s.render(surface));
} else {
- if (s.y + s.h < horizont)
+ if (s.y + s.h <= horizon)
dirty.extend(s.render(surface));
}
}
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