aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVladimir Menshakov2009-11-18 08:13:44 +0000
committerVladimir Menshakov2009-11-18 08:13:44 +0000
commit2294c6f4667cbb3e7c32487b96c0e83d3f726420 (patch)
tree864adff0d2e354aca48516e3c6e017525db152c1
parent79714a22c2767eab4f2b02703234ba58c356c9ac (diff)
downloadscummvm-rg350-2294c6f4667cbb3e7c32487b96c0e83d3f726420.tar.gz
scummvm-rg350-2294c6f4667cbb3e7c32487b96c0e83d3f726420.tar.bz2
scummvm-rg350-2294c6f4667cbb3e7c32487b96c0e83d3f726420.zip
minor textual fixes
svn-id: r45968
-rw-r--r--engines/teenagent/surface_list.cpp11
1 files changed, 6 insertions, 5 deletions
diff --git a/engines/teenagent/surface_list.cpp b/engines/teenagent/surface_list.cpp
index 9157667ba4..2c34b3b3fc 100644
--- a/engines/teenagent/surface_list.cpp
+++ b/engines/teenagent/surface_list.cpp
@@ -36,9 +36,9 @@ void SurfaceList::load(Common::SeekableReadStream *stream, Type type, int sub_ha
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);
+
if (surfaces_n == 0)
return;
@@ -62,15 +62,16 @@ void SurfaceList::free() {
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));
}
}