From 4de4353c39546f87ea493b1f403145ddfcfbbfac Mon Sep 17 00:00:00 2001 From: Max Horn Date: Sun, 4 Apr 2004 19:41:02 +0000 Subject: [PATCH] My recent change to _draw_bottom caused a regression in The Dig (and maybe elsewhere). Ah well, probably better to draw one line more than one line less anyway svn-id: r13462 --- scumm/akos.cpp | 8 ++++---- scumm/costume.cpp | 4 ++-- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/scumm/akos.cpp b/scumm/akos.cpp index 7f786ee5855..61b5b0aea0e 100644 --- a/scumm/akos.cpp +++ b/scumm/akos.cpp @@ -732,8 +732,8 @@ byte AkosRenderer::codec1(int xmoveCur, int ymoveCur) { if (_draw_top > rect.top) _draw_top = rect.top; - if (_draw_bottom < rect.bottom - 1) - _draw_bottom = rect.bottom - 1; + if (_draw_bottom < rect.bottom) + _draw_bottom = rect.bottom; v1.destptr = _outptr + v1.y * _outwidth + v1.x; @@ -776,8 +776,8 @@ byte AkosRenderer::codec5(int xmoveCur, int ymoveCur) { if (_draw_top > clip.top) _draw_top = clip.top; - if (_draw_bottom < clip.bottom - 1) - _draw_bottom = clip.bottom - 1; + if (_draw_bottom < clip.bottom) + _draw_bottom = clip.bottom; BompDrawData bdd; diff --git a/scumm/costume.cpp b/scumm/costume.cpp index 5b76a02949f..1f5e28b9c9e 100644 --- a/scumm/costume.cpp +++ b/scumm/costume.cpp @@ -262,8 +262,8 @@ byte CostumeRenderer::mainRoutine(int xmoveCur, int ymoveCur) { if (_draw_top > rect.top) _draw_top = rect.top; - if (_draw_bottom < rect.bottom - 1) - _draw_bottom = rect.bottom - 1; + if (_draw_bottom < rect.bottom) + _draw_bottom = rect.bottom; if (_height + rect.top >= 256) { CHECK_HEAP